Package com.unboundid.util.ssl.cert
Enum PublicKeyAlgorithmIdentifier
java.lang.Object
java.lang.Enum<PublicKeyAlgorithmIdentifier>
com.unboundid.util.ssl.cert.PublicKeyAlgorithmIdentifier
- All Implemented Interfaces:
Serializable,Comparable<PublicKeyAlgorithmIdentifier>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum PublicKeyAlgorithmIdentifier
extends Enum<PublicKeyAlgorithmIdentifier>
This enum defines a set of public key algorithm names and OIDs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe algorithm identifier for the Diffie-Hellman public key algorithm.The algorithm identifier for the DSA public key algorithm.The algorithm identifier for the elliptic curve public key algorithm.The algorithm identifier for the RSA public key algorithm. -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKeyAlgorithmIdentifierRetrieves the public key algorithm identifier instance with the specified name.static PublicKeyAlgorithmIdentifierRetrieves the public key algorithm identifier instance with the specified OID.getName()Retrieves the name for this public key algorithm.static StringgetNameOrOID(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.getOID()Retrieves the OID for this public key algorithm.toString()Retrieves a string representation of this public key algorithm identifier.static PublicKeyAlgorithmIdentifierReturns 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.
-
Enum Constant Details
-
RSA
The algorithm identifier for the RSA public key algorithm. This identifier is defined in RFC 3279 section 2.3.1. -
DSA
The algorithm identifier for the DSA public key algorithm. This identifier is defined in RFC 3279 section 2.3.2. -
DIFFIE_HELLMAN
The algorithm identifier for the Diffie-Hellman public key algorithm. This identifier is defined in RFC 3279 section 2.3.3. -
EC
The algorithm identifier for the elliptic curve public key algorithm. This identifier is defined in RFC 3279 section 2.3.5.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getOID
Retrieves the OID for this public key algorithm.- Returns:
- The OID for this public key algorithm.
-
getName
Retrieves the name for this public key algorithm.- Returns:
- The name for this public key algorithm.
-
forOID
Retrieves the public key algorithm identifier instance with the specified OID.- Parameters:
oid- The OID for the public key algorithm identifier instance to retrieve.- Returns:
- The appropriate public key algorithm identifier instance, or
nullif the provided OID does not reference a known public key algorithm identifier.
-
forName
Retrieves the public key algorithm identifier instance with the specified name.- Parameters:
name- The name of the public key algorithm identifier instance to retrieve.- Returns:
- The appropriate public key algorithm identifier instance, or
nullif the provided name does not reference a known public key algorithm identifier.
-
getNameOrOID
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.- Parameters:
oid- The OID for the public key algorithm identifier to retrieve.- Returns:
- 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.
-
toString
Retrieves a string representation of this public key algorithm identifier.- Overrides:
toStringin classEnum<PublicKeyAlgorithmIdentifier>- Returns:
- A string representation of this public key algorithm identifier.
-