Package com.unboundid.util.ssl.cert
Enum SignatureAlgorithmIdentifier
java.lang.Object
java.lang.Enum<SignatureAlgorithmIdentifier>
com.unboundid.util.ssl.cert.SignatureAlgorithmIdentifier
- All Implemented Interfaces:
Serializable,Comparable<SignatureAlgorithmIdentifier>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum SignatureAlgorithmIdentifier
extends Enum<SignatureAlgorithmIdentifier>
This enum defines a set of 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 MD2 message digest with RSA encryption.The algorithm identifier for the MD5 message digest with RSA encryption.The algorithm identifier for the SHA-1 message digest with the DSA signature algorithm.The algorithm identifier for the SHA-1 message digest with the ECDSA signature algorithm.The algorithm identifier for the SHA-1 message digest with RSA encryption.The algorithm identifier for the 224-bit SHA-2 message digest with the DSA signature algorithm.The algorithm identifier for the 224-bit SHA-2 message digest with the ECDSA signature algorithm.The algorithm identifier for the 224-bit SHA-2 message digest with RSA encryption.The algorithm identifier for the 256-bit SHA-2 message digest with the DSA signature algorithm.The algorithm identifier for the 256-bit SHA-2 message digest with the ECDSA signature algorithm.The algorithm identifier for the 256-bit SHA-2 message digest with RSA encryption.The algorithm identifier for the 384-bit SHA-2 message digest with the ECDSA signature algorithm.The algorithm identifier for the 384-bit SHA-2 message digest with RSA encryption.The algorithm identifier for the 512-bit SHA-2 message digest with the ECDSA signature algorithm.The algorithm identifier for the 512-bit SHA-2 message digest with RSA encryption. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureAlgorithmIdentifierRetrieves the signature algorithm identifier instance with the specified name.static SignatureAlgorithmIdentifierRetrieves the signature algorithm identifier instance with the specified OID.Retrieves the name for this signature algorithm as it would be used internally by Java.static StringgetNameOrOID(OID oid) Retrieves the user-friendly name for the signature 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 signature algorithm.Retrieves the user-friendly name for this signature algorithm.toString()Retrieves a string representation of this signature algorithm identifier.static SignatureAlgorithmIdentifierReturns the enum constant of this type with the specified name.static SignatureAlgorithmIdentifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MD2_WITH_RSA
The algorithm identifier for the MD2 message digest with RSA encryption. This identifier is defined in RFC 3279 section 2.2.1. -
MD5_WITH_RSA
The algorithm identifier for the MD5 message digest with RSA encryption. This identifier is defined in RFC 3279 section 2.2.1. -
SHA_1_WITH_RSA
The algorithm identifier for the SHA-1 message digest with RSA encryption. This identifier is defined in RFC 3279 section 2.2.1. -
SHA_224_WITH_RSA
The algorithm identifier for the 224-bit SHA-2 message digest with RSA encryption. This identifier is defined in RFC 4055 section 5. -
SHA_256_WITH_RSA
The algorithm identifier for the 256-bit SHA-2 message digest with RSA encryption. This identifier is defined in RFC 4055 section 5. -
SHA_384_WITH_RSA
The algorithm identifier for the 384-bit SHA-2 message digest with RSA encryption. This identifier is defined in RFC 4055 section 5. -
SHA_512_WITH_RSA
The algorithm identifier for the 512-bit SHA-2 message digest with RSA encryption. This identifier is defined in RFC 4055 section 5. -
SHA_1_WITH_DSA
The algorithm identifier for the SHA-1 message digest with the DSA signature algorithm. This identifier is defined in RFC 3279 section 2.2.2. -
SHA_224_WITH_DSA
The algorithm identifier for the 224-bit SHA-2 message digest with the DSA signature algorithm. This identifier is defined in RFC 5758 section 3.1. -
SHA_256_WITH_DSA
The algorithm identifier for the 256-bit SHA-2 message digest with the DSA signature algorithm. This identifier is defined in RFC 5758 section 3.1. -
SHA_1_WITH_ECDSA
The algorithm identifier for the SHA-1 message digest with the ECDSA signature algorithm. This identifier is defined in RFC 3279 section 2.2.3. -
SHA_224_WITH_ECDSA
The algorithm identifier for the 224-bit SHA-2 message digest with the ECDSA signature algorithm. This identifier is defined in RFC 5758 section 3.2. -
SHA_256_WITH_ECDSA
The algorithm identifier for the 256-bit SHA-2 message digest with the ECDSA signature algorithm. This identifier is defined in RFC 5758 section 3.2. -
SHA_384_WITH_ECDSA
The algorithm identifier for the 384-bit SHA-2 message digest with the ECDSA signature algorithm. This identifier is defined in RFC 5758 section 3.2. -
SHA_512_WITH_ECDSA
The algorithm identifier for the 512-bit SHA-2 message digest with the ECDSA signature algorithm. This identifier is defined in RFC 5758 section 3.2.
-
-
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 signature algorithm.- Returns:
- The OID for this signature algorithm.
-
getJavaName
Retrieves the name for this signature algorithm as it would be used internally by Java.- Returns:
- The name for this signature algorithm as it would be used internally by Java.
-
getUserFriendlyName
Retrieves the user-friendly name for this signature algorithm.- Returns:
- The user-friendly name for this signature algorithm.
-
forOID
Retrieves the signature algorithm identifier instance with the specified OID.- Parameters:
oid- The OID for the signature algorithm identifier instance to retrieve.- Returns:
- The appropriate signature algorithm identifier instance, or
nullif the provided OID does not reference a known signature algorithm identifier.
-
forName
Retrieves the signature algorithm identifier instance with the specified name.- Parameters:
name- The name of the signature algorithm identifier instance to retrieve.- Returns:
- The appropriate signature algorithm identifier instance, or
nullif the provided name does not reference a known signature algorithm identifier.
-
getNameOrOID
Retrieves the user-friendly name for the signature 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 signature algorithm identifier to retrieve.- Returns:
- The user-friendly name for the signature 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 signature algorithm identifier.- Overrides:
toStringin classEnum<SignatureAlgorithmIdentifier>- Returns:
- A string representation of this signature algorithm identifier.
-