public class AlgorithmParameter extends AbstractBlock implements Serializable, Comparable<AlgorithmParameter>, Dumpable
ASN1 parser block for algorithm parameters.
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
CRLF
Constructor and Description |
---|
AlgorithmParameter() |
AlgorithmParameter(AlgorithmParameter p)
Copy constructor.
|
AlgorithmParameter(org.bouncycastle.asn1.ASN1Encodable ae)
Create object from ASN.1 code.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AlgorithmParameter o) |
String |
dumpValueNotation(String prefix,
DumpType dumpType) |
boolean |
equals(Object o) |
String |
get(int id) |
String |
get(Parameter p) |
String |
get(String id)
Gets a value identified by a key from the list.
|
int |
hashCode() |
protected void |
parse(org.bouncycastle.asn1.ASN1Encodable ae) |
String |
put(int id,
String value)
Puts a key/value pair into the list.
|
String |
put(Parameter parameter,
String value)
Puts a key/value pair into the list.
|
String |
put(String id,
String value) |
org.bouncycastle.asn1.ASN1Object |
toAsn1Object(DumpType dt)
Dumps an ASN.1 representation of the object.
|
String |
toString() |
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
public static final long serialVersionUID
public AlgorithmParameter()
public AlgorithmParameter(org.bouncycastle.asn1.ASN1Encodable ae) throws IOException
Create object from ASN.1 code.
ae
- the ASN.1 codeIOException
- if parsing of ASN.1 code failspublic AlgorithmParameter(AlgorithmParameter p)
Copy constructor.
p
- the ASN.1 codepublic final String put(int id, String value)
Puts a key/value pair into the list.
id
- the key (must be known to the
subsystem @see Parameter)value
- the value to be storedpublic final String put(Parameter parameter, String value)
Puts a key/value pair into the list.
parameter
- the keyvalue
- the value to be storedpublic final String get(String id)
Gets a value identified by a key from the list.
id
- the keypublic String get(int id)
protected final void parse(org.bouncycastle.asn1.ASN1Encodable ae) throws IOException
parse
in class AbstractBlock
IOException
public String dumpValueNotation(String prefix, DumpType dumpType)
dumpValueNotation
in interface Block
public org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dt)
Dumpable
Dumps an ASN.1 representation of the object.
toAsn1Object
in interface Dumpable
dt
- the dump type to be usedpublic int compareTo(AlgorithmParameter o)
compareTo
in interface Comparable<AlgorithmParameter>
Copyright © 2023. All rights reserved.