Package net.messagevortex.asn1
Class AlgorithmParameter
java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.AlgorithmParameter
- All Implemented Interfaces:
Serializable,Comparable<AlgorithmParameter>,Block,Dumpable
public class AlgorithmParameter
extends AbstractBlock
implements Serializable, Comparable<AlgorithmParameter>, Dumpable
ASN1 parser block for algorithm parameters.
- See Also:
-
Field Summary
FieldsFields inherited from class net.messagevortex.asn1.AbstractBlock
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor.AlgorithmParameter(org.bouncycastle.asn1.ASN1Encodable ae) Create object from ASN.1 code. -
Method Summary
Modifier and TypeMethodDescriptionintdumpValueNotation(String prefix, DumpType dumpType) booleanget(int id) final StringGets a value identified by a key from the list.inthashCode()protected final voidparse(org.bouncycastle.asn1.ASN1Encodable ae) final StringPuts a key/value pair into the list.final Stringfinal StringPuts a key/value pair into the list.org.bouncycastle.asn1.ASN1ObjecttoAsn1Object(DumpType dt) Dumps an ASN.1 representation of the object.toString()Methods inherited from class net.messagevortex.asn1.AbstractBlock
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AlgorithmParameter
public AlgorithmParameter() -
AlgorithmParameter
Create object from ASN.1 code.
- Parameters:
ae- the ASN.1 code- Throws:
IOException- if parsing of ASN.1 code fails
-
AlgorithmParameter
Copy constructor.
- Parameters:
p- the ASN.1 code
-
-
Method Details
-
put
-
put
Puts a key/value pair into the list.
- Parameters:
id- the key (must be known to the subsystem @see Parameter)value- the value to be stored- Returns:
- the perviously set value if it had been set before
-
put
Puts a key/value pair into the list.
- Parameters:
parameter- the keyvalue- the value to be stored- Returns:
- the perviously set value if it had been set before
-
get
Gets a value identified by a key from the list.
- Parameters:
id- the key- Returns:
- the value or null if not found
-
get
-
get
-
parse
- Specified by:
parsein classAbstractBlock- Throws:
IOException
-
dumpValueNotation
- Specified by:
dumpValueNotationin interfaceBlock
-
toAsn1Object
Description copied from interface:DumpableDumps an ASN.1 representation of the object.
- Specified by:
toAsn1Objectin interfaceDumpable- Parameters:
dt- the dump type to be used- Returns:
- the ASN.1 string representation of the object
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<AlgorithmParameter>
-