Class C509PublicKeyAlgorithm

java.lang.Object
org.bouncycastle.cbor.c509.C509PublicKeyAlgorithm

public final class C509PublicKeyAlgorithm extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP256r1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP384r1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP512r1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on FRP256v1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on secp256r1; subjectPublicKey encoded as in Section 3.2.1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on secp384r1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on secp521r1.
    static final int
    id-ecPublicKey (1.2.840.10045.2.1) on sm2p256v1.
    static final int
    id-Ed25519 (1.3.101.112).
    static final int
    id-Ed448 (1.3.101.113).
    static final int
    rsaEncryption (1.2.840.113549.1.1.1); subjectPublicKey encoded as in Section 3.2.1.
    static final int
    id-X25519 (1.3.101.110).
    static final int
    id-X448 (1.3.101.111).
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bouncycastle.asn1.x509.AlgorithmIdentifier
    Return the AlgorithmIdentifier a registered value stands for, or null if the value is not registered.
    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.
    static Integer
    getValue(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 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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RSA

      public static final int RSA
      rsaEncryption (1.2.840.113549.1.1.1); subjectPublicKey encoded as in Section 3.2.1.
      See Also:
    • EC_SECP256R1

      public static final int EC_SECP256R1
      id-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_SECP384R1
      id-ecPublicKey (1.2.840.10045.2.1) on secp384r1.
      See Also:
    • EC_SECP521R1

      public static final int EC_SECP521R1
      id-ecPublicKey (1.2.840.10045.2.1) on secp521r1.
      See Also:
    • EC_SM2P256V1

      public static final int EC_SM2P256V1
      id-ecPublicKey (1.2.840.10045.2.1) on sm2p256v1.
      See Also:
    • X25519

      public static final int X25519
      id-X25519 (1.3.101.110).
      See Also:
    • X448

      public static final int X448
      id-X448 (1.3.101.111).
      See Also:
    • ED25519

      public static final int ED25519
      id-Ed25519 (1.3.101.112).
      See Also:
    • ED448

      public static final int ED448
      id-Ed448 (1.3.101.113).
      See Also:
    • EC_BRAINPOOLP256R1

      public static final int EC_BRAINPOOLP256R1
      id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP256r1.
      See Also:
    • EC_BRAINPOOLP384R1

      public static final int EC_BRAINPOOLP384R1
      id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP384r1.
      See Also:
    • EC_BRAINPOOLP512R1

      public static final int EC_BRAINPOOLP512R1
      id-ecPublicKey (1.2.840.10045.2.1) on brainpoolP512r1.
      See Also:
    • EC_FRP256V1

      public static final int EC_FRP256V1
      id-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

      public static Integer getValue(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.
    • 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.