Enum Class Parameter
- All Implemented Interfaces:
Serializable,Comparable<Parameter>,Constable
Enumeration of all supported Parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromAsn1Object(org.bouncycastle.asn1.ASN1Object o) Create string representation from ASN.1 object.static ParametergetById(int id) Retrieve parameter by ASN.1 id.static ParameterRetrieve parameter by name.intgetId()Retrieve the ASN.1 id of the parameter.booleanCheck if Parameter may be encoded in an ASN.1 file.org.bouncycastle.asn1.ASN1EncodableEncode the string representation into the ASN.1 equivalent.toString()Retrieve the name of the parameter.static ParameterReturns the enum constant of this class with the specified name.static Parameter[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALGORITHM
-
KEYSIZE
-
CURVETYPE
-
IV
-
NONCE
-
MODE
-
PADDING
-
BLOCKSIZE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getById
Retrieve parameter by ASN.1 id.
- Parameters:
id- the ASN.1 id- Returns:
- the apropriate parameter or null if an illegal nuber is provided
-
getByString
Retrieve parameter by name.
- Parameters:
s- the name to be looked up- Returns:
- the apropriate parameter or null if an illegal name is provided
-
getId
public int getId()Retrieve the ASN.1 id of the parameter.
- Returns:
- the numeric ASN.1 id
-
isEncodable
public boolean isEncodable()Check if Parameter may be encoded in an ASN.1 file.
- Returns:
- true if parameter is valid for encoding in ASN.1 structure
-
fromAsn1Object
Create string representation from ASN.1 object.
- Parameters:
o- the object to be decoded- Returns:
- a string representation of the parameter
-
toAsn1Object
Encode the string representation into the ASN.1 equivalent.
- Parameters:
s- the string representation of the parameter content- Returns:
- the ASN.1 representation of the parameter
-
toString
Retrieve the name of the parameter.
-