public class C509AlgorithmIdentifier
extends java.lang.Object
AlgorithmIdentifier = int / ~oid / [ algorithm: ~oid, parameters: bytes ]The meaning of a registered int depends on which registry the field draws from (signature algorithms, Section 8.14, or public key algorithms, Section 8.15), so instances are created through the registry-specific factory methods, and every instance carries its resolved X.509
AlgorithmIdentifier.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static C509AlgorithmIdentifier |
forPublicKeyAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
Build the C509 form of a subject public key AlgorithmIdentifier, using the
registered int where the C509 Public Key Algorithms Registry (Section 8.15) has
an entry for it, and the unwrapped CBOR OID form otherwise.
|
static C509AlgorithmIdentifier |
forSignatureAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
Build the C509 form of a signature AlgorithmIdentifier, using the registered int
where the C509 Signature Algorithms Registry (Section 8.14) has an entry for it,
and the unwrapped CBOR OID form otherwise.
|
java.lang.Integer |
getRegistryValue()
Return the registry value for the algorithm this identifier resolves to, whether
it is carried as an int or as an OID whose AlgorithmIdentifier matches a registry
entry, or null when the algorithm is not registered.
|
int |
hashCode() |
boolean |
isRegisteredValue()
Return true if this identifier is carried as a registered CBOR int on the wire.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
toX509AlgorithmIdentifier()
Return the X.509 AlgorithmIdentifier this identifier stands for.
|
public static C509AlgorithmIdentifier forSignatureAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
public static C509AlgorithmIdentifier forPublicKeyAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
public boolean isRegisteredValue()
public java.lang.Integer getRegistryValue()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier toX509AlgorithmIdentifier()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object