java.lang.Object
org.eclipse.jgit.gpg.bc.internal.keys.ObjectIds

public final class ObjectIds extends Object
Some OIDs apparently unknown to Bouncy Castle.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Legacy OID for curve25519 used in OpenPGP.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Legacy OID for ed25519 used in OpenPGP.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    OID for curve25519 according to RFC 8410.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    OID for ed25519 according to RFC 8410.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bouncycastle.asn1.ASN1ObjectIdentifier
    Retrieves an OID by name.
    static boolean
    isCurve25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
    Determines whether the given oid denoted curve25519.
    static boolean
    isEd25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
    Determines whether the given oid denoted ed25519.
    static boolean
    match(org.bouncycastle.asn1.ASN1ObjectIdentifier oid1, org.bouncycastle.asn1.ASN1ObjectIdentifier oid2)
    Checks whether two OIDs denote the same algorithm.

    Methods inherited from class java.lang.Object

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

    • OID_OPENPGP_ED25519

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_OPENPGP_ED25519
      Legacy OID for ed25519 used in OpenPGP.
    • OID_RFC8410_ED25519

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_RFC8410_ED25519
      OID for ed25519 according to RFC 8410.
    • OID_OPENPGP_CURVE25519

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_OPENPGP_CURVE25519
      Legacy OID for curve25519 used in OpenPGP.
    • OID_RFC8410_CURVE25519

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_RFC8410_CURVE25519
      OID for curve25519 according to RFC 8410.
  • Constructor Details

    • ObjectIds

      public ObjectIds()
  • Method Details

    • isEd25519

      public static boolean isEd25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
      Determines whether the given oid denoted ed25519.
      Parameters:
      oid - to test
      Returns:
      true if it is ed25519, false otherwise
    • isCurve25519

      public static boolean isCurve25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
      Determines whether the given oid denoted curve25519.
      Parameters:
      oid - to test
      Returns:
      true if it is curve25519, false otherwise
    • getByName

      public static org.bouncycastle.asn1.ASN1ObjectIdentifier getByName(String name)
      Retrieves an OID by name.
      Parameters:
      name - to get the OID for
      Returns:
      the OID, or null if unknown.
    • match

      public static boolean match(org.bouncycastle.asn1.ASN1ObjectIdentifier oid1, org.bouncycastle.asn1.ASN1ObjectIdentifier oid2)
      Checks whether two OIDs denote the same algorithm.
      Parameters:
      oid1 - First OID to test
      oid2 - Second OID to test
      Returns:
      true if the two OIDs match, false otherwise