it.unisa.dia.gas.jpbc
Interface CurveParameters

All Superinterfaces:
java.io.Serializable

public interface CurveParameters
extends java.io.Serializable

Represents the set of parameters describing an elliptic curve.

Since:
1.2.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)

Method Summary
 boolean containsKey(java.lang.String key)
          Returns true if a mapping for the specified key exists.
 java.math.BigInteger getBigInteger(java.lang.String key)
          Returns the value as a BigInteger to which the specified key is mapped.
 java.math.BigInteger getBigInteger(java.lang.String key, java.math.BigInteger defaultValue)
          Returns the value as a BigInteger to which the specified key is mapped.
 byte[] getBytes(java.lang.String key)
          Returns the value as an array of bytes to which the specified key is mapped.
 byte[] getBytes(java.lang.String key, byte[] defaultValue)
          Returns the value as an array of bytes to which the specified key is mapped.
 int getInt(java.lang.String key)
          Returns the value as an int to which the specified key is mapped.
 int getInt(java.lang.String key, int defaultValue)
          Returns the value as an int to which the specified key is mapped.
 long getLong(java.lang.String key)
          Returns the value as a long to which the specified key is mapped.
 long getLong(java.lang.String key, long defaultValue)
          Returns the value as a long to which the specified key is mapped.
 java.lang.String getString(java.lang.String key)
          Returns the value as a string to which the specified key is mapped.
 java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
          Returns the value as a string to which the specified key is mapped.
 java.lang.String toString(java.lang.String separator)
          Returns a string representation using the passed separator between the values.
 

Method Detail

containsKey

boolean containsKey(java.lang.String key)
Returns true if a mapping for the specified key exists.

Parameters:
key - key whose presence is to be tested
Returns:
true if a mapping for the specified key exists.
Since:
1.2.0

getString

java.lang.String getString(java.lang.String key)
Returns the value as a string to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a string to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.0

getString

java.lang.String getString(java.lang.String key,
                           java.lang.String defaultValue)
Returns the value as a string to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a string to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.
Since:
1.2.0

getInt

int getInt(java.lang.String key)
Returns the value as an int to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as an int to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.0

getInt

int getInt(java.lang.String key,
           int defaultValue)
Returns the value as an int to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as an int to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.
Since:
1.2.0

getBigInteger

java.math.BigInteger getBigInteger(java.lang.String key)
Returns the value as a BigInteger to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a BigInteger to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.0

getBigInteger

java.math.BigInteger getBigInteger(java.lang.String key,
                                   java.math.BigInteger defaultValue)
Returns the value as a BigInteger to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a BigInteger to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.
Since:
1.2.0

getLong

long getLong(java.lang.String key)
Returns the value as a long to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a long to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.0

getLong

long getLong(java.lang.String key,
             long defaultValue)
Returns the value as a long to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as a long to which the specified key is mapped. If the mapping does not exist the passed defaultValue is returned.
Since:
1.2.0

getBytes

byte[] getBytes(java.lang.String key)
Returns the value as an array of bytes to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as an array of bytes to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.0

getBytes

byte[] getBytes(java.lang.String key,
                byte[] defaultValue)
Returns the value as an array of bytes to which the specified key is mapped.

Parameters:
key - the key whose associated value is to be returned
Returns:
the value as an array of bytes to which the specified key is mapped.
Throws:
java.lang.IllegalArgumentException - if the specified key does not exists.
Since:
1.2.1

toString

java.lang.String toString(java.lang.String separator)
Returns a string representation using the passed separator between the values.

Parameters:
separator - the separator to be used between the values.
Returns:
a string representation.
Since:
1.2.0


Copyright © 2012. All Rights Reserved.