@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum PublicKeyAlgorithmIdentifier extends java.lang.Enum<PublicKeyAlgorithmIdentifier>
Enum Constant and Description |
---|
DIFFIE_HELLMAN
The algorithm identifier for the Diffie-Hellman public key algorithm.
|
DSA
The algorithm identifier for the DSA public key algorithm.
|
EC
The algorithm identifier for the elliptic curve public key algorithm.
|
RSA
The algorithm identifier for the RSA public key algorithm.
|
Modifier and Type | Method and Description |
---|---|
static PublicKeyAlgorithmIdentifier |
forName(java.lang.String name)
Retrieves the public key algorithm identifier instance with the specified
name.
|
static PublicKeyAlgorithmIdentifier |
forOID(OID oid)
Retrieves the public key algorithm identifier instance with the specified
OID.
|
java.lang.String |
getName()
Retrieves the name for this public key algorithm.
|
static java.lang.String |
getNameOrOID(OID oid)
Retrieves the human-readable name for the public key algorithm identifier
value with the provided OID, or a string representation of the OID if there
is no value with that OID.
|
OID |
getOID()
Retrieves the OID for this public key algorithm.
|
java.lang.String |
toString()
Retrieves a string representation of this public key algorithm identifier.
|
static PublicKeyAlgorithmIdentifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublicKeyAlgorithmIdentifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKeyAlgorithmIdentifier RSA
public static final PublicKeyAlgorithmIdentifier DSA
public static final PublicKeyAlgorithmIdentifier DIFFIE_HELLMAN
public static final PublicKeyAlgorithmIdentifier EC
public static PublicKeyAlgorithmIdentifier[] values()
for (PublicKeyAlgorithmIdentifier c : PublicKeyAlgorithmIdentifier.values()) System.out.println(c);
public static PublicKeyAlgorithmIdentifier valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public OID getOID()
@NotNull public java.lang.String getName()
@Nullable public static PublicKeyAlgorithmIdentifier forOID(@NotNull OID oid)
oid
- The OID for the public key algorithm identifier instance to
retrieve.null
if the provided OID does not reference a known
public key algorithm identifier.@Nullable public static PublicKeyAlgorithmIdentifier forName(@NotNull java.lang.String name)
name
- The name of the public key algorithm identifier instance to
retrieve.null
if the provided name does not reference a known
public key algorithm identifier.@NotNull public static java.lang.String getNameOrOID(@NotNull OID oid)
oid
- The OID for the public key algorithm identifier to retrieve.@NotNull public java.lang.String toString()
toString
in class java.lang.Enum<PublicKeyAlgorithmIdentifier>