Package net.messagevortex.asn1
Class AsymmetricAlgorithmSpec
java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.AsymmetricAlgorithmSpec
- All Implemented Interfaces:
Serializable,Block,Dumpable
- Direct Known Subclasses:
SymmetricAlgorithmSpec
Specification for AsymmetricAlgorithmSpec.
- See Also:
-
Field Summary
FieldsFields inherited from class net.messagevortex.asn1.AbstractBlock
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor.AsymmetricAlgorithmSpec(Algorithm alg, AlgorithmParameter params) AsymmetricAlgorithmSpec(org.bouncycastle.asn1.ASN1Encodable to) Constructor to build from ASN1 object. -
Method Summary
Modifier and TypeMethodDescriptiondumpValueNotation(String prefix, DumpType dumptype) Gets the algorithm (@see Algorithm).Get the algorithm parameters (@see AlgorithmParameter).protected final voidparse(org.bouncycastle.asn1.ASN1Encodable to) org.bouncycastle.asn1.ASN1ObjecttoAsn1Object(DumpType dumpType) Dumps an ASN.1 representation of the object.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
-
AsymmetricAlgorithmSpec
Copy constructor.
- Parameters:
to- object to clone- Throws:
IOException- when failing to copy source object
-
AsymmetricAlgorithmSpec
-
AsymmetricAlgorithmSpec
Constructor to build from ASN1 object.
- Parameters:
to- Object to be parsed- Throws:
IOException- when failing to parse ASN1 object
-
-
Method Details
-
parse
- Specified by:
parsein classAbstractBlock- Throws:
IOException
-
getAlgorithm
Gets the algorithm (@see Algorithm).
- Returns:
- the current algorithm
-
getAlgorithmParameter
Get the algorithm parameters (@see AlgorithmParameter).
- Returns:
- the current algorithm parameters
-
dumpValueNotation
- Specified by:
dumpValueNotationin interfaceBlock
-
toAsn1Object
Description copied from interface:DumpableDumps an ASN.1 representation of the object.
- Specified by:
toAsn1Objectin interfaceDumpable- Parameters:
dumpType- the dump type to be used- Returns:
- the ASN.1 string representation of the object
- Throws:
IOException- if dumping of the object fails due to an illegal internal state of the object
-