Top Description Fields Constructors Methods
org.eclipse.jgit.gpg.bc.internal.keys

public final Class ObjectIds

extends Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.x9.ECNamedCurveTable

Some OIDs apparently unknown to Bouncy Castle.

Field Summary

Modifier and TypeField and Description
public static final ASN1ObjectIdentifier
OID_OPENPGP_CURVE25519

Legacy OID for curve25519 used in OpenPGP.

public static final ASN1ObjectIdentifier
OID_OPENPGP_ED25519

Legacy OID for ed25519 used in OpenPGP.

public static final ASN1ObjectIdentifier
OID_RFC8410_CURVE25519

OID for curve25519 according to RFC 8410.

public static final ASN1ObjectIdentifier
OID_RFC8410_ED25519

OID for ed25519 according to RFC 8410.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ASN1ObjectIdentifier

Returns:

the OID, or null if unknown.
getByName
(String
to get the OID for
name
)

Retrieves an OID by name.

public static boolean

Returns:

true if it is curve25519, false otherwise
isCurve25519
(ASN1ObjectIdentifier
to test
oid
)

Determines whether the given oid denoted curve25519.

public static boolean

Returns:

true if it is ed25519, false otherwise
isEd25519
(ASN1ObjectIdentifier
to test
oid
)

Determines whether the given oid denoted ed25519.

public static boolean

Returns:

true if the two OIDs match, false otherwise
match
(ASN1ObjectIdentifier
First OID to test
oid1
,
ASN1ObjectIdentifier
Second OID to test
oid2
)

Checks whether two OIDs denote the same algorithm.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OID_OPENPGP_CURVE25519back to summary
public static final ASN1ObjectIdentifier OID_OPENPGP_CURVE25519

Legacy OID for curve25519 used in OpenPGP.

OID_OPENPGP_ED25519back to summary
public static final ASN1ObjectIdentifier OID_OPENPGP_ED25519

Legacy OID for ed25519 used in OpenPGP.

OID_RFC8410_CURVE25519back to summary
public static final ASN1ObjectIdentifier OID_RFC8410_CURVE25519

OID for curve25519 according to RFC 8410.

OID_RFC8410_ED25519back to summary
public static final ASN1ObjectIdentifier OID_RFC8410_ED25519

OID for ed25519 according to RFC 8410.

Constructor Detail

ObjectIdsback to summary
public ObjectIds()

Method Detail

getByNameback to summary
public static ASN1ObjectIdentifier getByName(String name)

Retrieves an OID by name.

Parameters
name:String

to get the OID for

Returns:ASN1ObjectIdentifier

the OID, or null if unknown.

isCurve25519back to summary
public static boolean isCurve25519(ASN1ObjectIdentifier oid)

Determines whether the given oid denoted curve25519.

Parameters
oid:ASN1ObjectIdentifier

to test

Returns:boolean

true if it is curve25519, false otherwise

isEd25519back to summary
public static boolean isEd25519(ASN1ObjectIdentifier oid)

Determines whether the given oid denoted ed25519.

Parameters
oid:ASN1ObjectIdentifier

to test

Returns:boolean

true if it is ed25519, false otherwise

matchback to summary
public static boolean match(ASN1ObjectIdentifier oid1, ASN1ObjectIdentifier oid2)

Checks whether two OIDs denote the same algorithm.

Parameters
oid1:ASN1ObjectIdentifier

First OID to test

oid2:ASN1ObjectIdentifier

Second OID to test

Returns:boolean

true if the two OIDs match, false otherwise