public class AsymmetricAlgorithmSpec extends AbstractBlock implements Serializable, Dumpable
Specification for AsymmetricAlgorithmSpec.
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
CRLF
Constructor and Description |
---|
AsymmetricAlgorithmSpec(Algorithm alg,
AlgorithmParameter params) |
AsymmetricAlgorithmSpec(org.bouncycastle.asn1.ASN1Encodable to)
Constructor to build from ASN1 object.
|
AsymmetricAlgorithmSpec(AsymmetricAlgorithmSpec to)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
dumpValueNotation(String prefix,
DumpType dumptype) |
Algorithm |
getAlgorithm()
Gets the algorithm (@see Algorithm).
|
AlgorithmParameter |
getAlgorithmParameter()
Get the algorithm parameters (@see AlgorithmParameter).
|
protected void |
parse(org.bouncycastle.asn1.ASN1Encodable to) |
org.bouncycastle.asn1.ASN1Object |
toAsn1Object(DumpType dumpType)
Dumps an ASN.1 representation of the object.
|
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
public static final long serialVersionUID
public AsymmetricAlgorithmSpec(AsymmetricAlgorithmSpec to) throws IOException
Copy constructor.
to
- object to cloneIOException
- when failing to copy source objectpublic AsymmetricAlgorithmSpec(Algorithm alg, AlgorithmParameter params)
public AsymmetricAlgorithmSpec(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
Constructor to build from ASN1 object.
to
- Object to be parsedIOException
- when failing to parse ASN1 objectprotected final void parse(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
parse
in class AbstractBlock
IOException
public Algorithm getAlgorithm()
Gets the algorithm (@see Algorithm).
public AlgorithmParameter getAlgorithmParameter()
Get the algorithm parameters (@see AlgorithmParameter).
public String dumpValueNotation(String prefix, DumpType dumptype)
dumpValueNotation
in interface Block
public org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dumpType) throws IOException
Dumpable
Dumps an ASN.1 representation of the object.
toAsn1Object
in interface Dumpable
dumpType
- the dump type to be usedIOException
- if dumping of the object fails due to an illegal internal state of the
objectCopyright © 2023. All rights reserved.