java.lang.Object
org.eclipse.jgit.gpg.bc.internal.keys.ObjectIds
Some OIDs apparently unknown to Bouncy Castle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bouncycastle.asn1.ASN1ObjectIdentifierLegacy OID for curve25519 used in OpenPGP.static final org.bouncycastle.asn1.ASN1ObjectIdentifierLegacy OID for ed25519 used in OpenPGP.static final org.bouncycastle.asn1.ASN1ObjectIdentifierOID for curve25519 according to RFC 8410.static final org.bouncycastle.asn1.ASN1ObjectIdentifierOID for ed25519 according to RFC 8410. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.asn1.ASN1ObjectIdentifierRetrieves an OID by name.static booleanisCurve25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) Determines whether the givenoiddenoted curve25519.static booleanisEd25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) Determines whether the givenoiddenoted ed25519.static booleanmatch(org.bouncycastle.asn1.ASN1ObjectIdentifier oid1, org.bouncycastle.asn1.ASN1ObjectIdentifier oid2) Checks whether two OIDs denote the same algorithm.
-
Field Details
-
OID_OPENPGP_ED25519
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_OPENPGP_ED25519Legacy OID for ed25519 used in OpenPGP. -
OID_RFC8410_ED25519
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_RFC8410_ED25519OID for ed25519 according to RFC 8410. -
OID_OPENPGP_CURVE25519
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_OPENPGP_CURVE25519Legacy OID for curve25519 used in OpenPGP. -
OID_RFC8410_CURVE25519
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID_RFC8410_CURVE25519OID 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 givenoiddenoted ed25519.- Parameters:
oid- to test- Returns:
trueif it is ed25519,falseotherwise
-
isCurve25519
public static boolean isCurve25519(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) Determines whether the givenoiddenoted curve25519.- Parameters:
oid- to test- Returns:
trueif it is curve25519,falseotherwise
-
getByName
Retrieves an OID by name.- Parameters:
name- to get the OID for- Returns:
- the OID, or
nullif 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 testoid2- Second OID to test- Returns:
trueif the two OIDs match,falseotherwise
-