public enum Parameter extends Enum<Parameter> implements Serializable
Enumeration of all supported Parameters.
Enum Constant and Description |
---|
ALGORITHM |
BLOCKSIZE |
CURVETYPE |
IV |
KEYSIZE |
MODE |
NONCE |
PADDING |
Modifier and Type | Method and Description |
---|---|
String |
fromAsn1Object(org.bouncycastle.asn1.ASN1Object o)
Create string representation from ASN.1 object.
|
static Parameter |
getById(int id)
Retrieve parameter by ASN.1 id.
|
static Parameter |
getByString(String s)
Retrieve parameter by name.
|
int |
getId()
Retrieve the ASN.1 id of the parameter.
|
boolean |
isEncodable()
Check if Parameter may be encoded in an ASN.1 file.
|
org.bouncycastle.asn1.ASN1Encodable |
toAsn1Object(String s)
Encode the string representation into the ASN.1 equivalent.
|
String |
toString()
Retrieve the name of the parameter.
|
static Parameter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parameter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parameter ALGORITHM
public static final Parameter KEYSIZE
public static final Parameter CURVETYPE
public static final Parameter IV
public static final Parameter NONCE
public static final Parameter MODE
public static final Parameter PADDING
public static final Parameter BLOCKSIZE
public static Parameter[] values()
for (Parameter c : Parameter.values()) System.out.println(c);
public static Parameter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Parameter getById(int id)
Retrieve parameter by ASN.1 id.
id
- the ASN.1 idpublic static Parameter getByString(String s)
Retrieve parameter by name.
s
- the name to be looked uppublic int getId()
Retrieve the ASN.1 id of the parameter.
public boolean isEncodable()
Check if Parameter may be encoded in an ASN.1 file.
public String fromAsn1Object(org.bouncycastle.asn1.ASN1Object o)
Create string representation from ASN.1 object.
o
- the object to be decodedpublic org.bouncycastle.asn1.ASN1Encodable toAsn1Object(String s)
Encode the string representation into the ASN.1 equivalent.
s
- the string representation of the parameter contentCopyright © 2023. All rights reserved.