Class C509PublicKeyAlgorithm
java.lang.Object
org.bouncycastle.cbor.c509.C509PublicKeyAlgorithm
The C509 Public Key Algorithms Registry, Section 8.15 of
draft-ietf-cose-cbor-encoded-cert-20. Each registered CBOR int value stands for a
complete X.509 AlgorithmIdentifier, including its parameters (for the elliptic
curve entries the named curve is part of the parameters), so conversion in either
direction is an exact table lookup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intid-ecPublicKey (1.2.840.10045.2.1) on brainpoolP256r1.static final intid-ecPublicKey (1.2.840.10045.2.1) on brainpoolP384r1.static final intid-ecPublicKey (1.2.840.10045.2.1) on brainpoolP512r1.static final intid-ecPublicKey (1.2.840.10045.2.1) on FRP256v1.static final intid-ecPublicKey (1.2.840.10045.2.1) on secp256r1; subjectPublicKey encoded as in Section 3.2.1.static final intid-ecPublicKey (1.2.840.10045.2.1) on secp384r1.static final intid-ecPublicKey (1.2.840.10045.2.1) on secp521r1.static final intid-ecPublicKey (1.2.840.10045.2.1) on sm2p256v1.static final intid-Ed25519 (1.3.101.112).static final intid-Ed448 (1.3.101.113).static final intrsaEncryption (1.2.840.113549.1.1.1); subjectPublicKey encoded as in Section 3.2.1.static final intid-X25519 (1.3.101.110).static final intid-X448 (1.3.101.111). -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier(int value) Return the AlgorithmIdentifier a registered value stands for, or null if the value is not registered.static org.bouncycastle.asn1.ASN1ObjectIdentifiergetCurveOID(int value) Return the named curve object identifier for a Weierstrass form entry, or null for any other value.static IntegergetValue(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm) Return the registered value for an AlgorithmIdentifier, matching its complete encoding including parameters, or null if it is not registered.static booleanisWeierstrassPoint(int value) Return true if the value identifies an id-ecPublicKey algorithm carrying a Weierstrass form point, to which the point compression of Section 3.2.1 applies.
-
Field Details
-
RSA
public static final int RSArsaEncryption (1.2.840.113549.1.1.1); subjectPublicKey encoded as in Section 3.2.1.- See Also:
-
EC_SECP256R1
public static final int EC_SECP256R1id-ecPublicKey (1.2.840.10045.2.1) on secp256r1; subjectPublicKey encoded as in Section 3.2.1.- See Also:
-
EC_SECP384R1
public static final int EC_SECP384R1id-ecPublicKey (1.2.840.10045.2.1) on secp384r1.- See Also:
-
EC_SECP521R1
public static final int EC_SECP521R1id-ecPublicKey (1.2.840.10045.2.1) on secp521r1.- See Also:
-
EC_SM2P256V1
public static final int EC_SM2P256V1id-ecPublicKey (1.2.840.10045.2.1) on sm2p256v1.- See Also:
-
X25519
public static final int X25519id-X25519 (1.3.101.110).- See Also:
-
X448
public static final int X448id-X448 (1.3.101.111).- See Also:
-
ED25519
public static final int ED25519id-Ed25519 (1.3.101.112).- See Also:
-
ED448
public static final int ED448id-Ed448 (1.3.101.113).- See Also:
-
EC_BRAINPOOLP256R1
public static final int EC_BRAINPOOLP256R1id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP256r1.- See Also:
-
EC_BRAINPOOLP384R1
public static final int EC_BRAINPOOLP384R1id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP384r1.- See Also:
-
EC_BRAINPOOLP512R1
public static final int EC_BRAINPOOLP512R1id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP512r1.- See Also:
-
EC_FRP256V1
public static final int EC_FRP256V1id-ecPublicKey (1.2.840.10045.2.1) on FRP256v1.- See Also:
-
-
Method Details
-
getAlgorithmIdentifier
public static org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(int value) Return the AlgorithmIdentifier a registered value stands for, or null if the value is not registered. -
getValue
Return the registered value for an AlgorithmIdentifier, matching its complete encoding including parameters, or null if it is not registered. -
isWeierstrassPoint
public static boolean isWeierstrassPoint(int value) Return true if the value identifies an id-ecPublicKey algorithm carrying a Weierstrass form point, to which the point compression of Section 3.2.1 applies. -
getCurveOID
public static org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveOID(int value) Return the named curve object identifier for a Weierstrass form entry, or null for any other value.
-