@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum SignatureAlgorithmIdentifier extends java.lang.Enum<SignatureAlgorithmIdentifier>
Enum Constant and Description |
---|
MD2_WITH_RSA
The algorithm identifier for the MD2 message digest with RSA encryption.
|
MD5_WITH_RSA
The algorithm identifier for the MD5 message digest with RSA encryption.
|
SHA_1_WITH_DSA
The algorithm identifier for the SHA-1 message digest with the DSA
signature algorithm.
|
SHA_1_WITH_ECDSA
The algorithm identifier for the SHA-1 message digest with the ECDSA
signature algorithm.
|
SHA_1_WITH_RSA
The algorithm identifier for the SHA-1 message digest with RSA encryption.
|
SHA_224_WITH_DSA
The algorithm identifier for the 224-bit SHA-2 message digest with the DSA
signature algorithm.
|
SHA_224_WITH_ECDSA
The algorithm identifier for the 224-bit SHA-2 message digest with the
ECDSA signature algorithm.
|
SHA_224_WITH_RSA
The algorithm identifier for the 224-bit SHA-2 message digest with RSA
encryption.
|
SHA_256_WITH_DSA
The algorithm identifier for the 256-bit SHA-2 message digest with the DSA
signature algorithm.
|
SHA_256_WITH_ECDSA
The algorithm identifier for the 256-bit SHA-2 message digest with the
ECDSA signature algorithm.
|
SHA_256_WITH_RSA
The algorithm identifier for the 256-bit SHA-2 message digest with RSA
encryption.
|
SHA_384_WITH_ECDSA
The algorithm identifier for the 384-bit SHA-2 message digest with the
ECDSA signature algorithm.
|
SHA_384_WITH_RSA
The algorithm identifier for the 384-bit SHA-2 message digest with RSA
encryption.
|
SHA_512_WITH_ECDSA
The algorithm identifier for the 512-bit SHA-2 message digest with the
ECDSA signature algorithm.
|
SHA_512_WITH_RSA
The algorithm identifier for the 512-bit SHA-2 message digest with RSA
encryption.
|
Modifier and Type | Method and Description |
---|---|
static SignatureAlgorithmIdentifier |
forName(java.lang.String name)
Retrieves the signature algorithm identifier instance with the specified
name.
|
static SignatureAlgorithmIdentifier |
forOID(OID oid)
Retrieves the signature algorithm identifier instance with the specified
OID.
|
java.lang.String |
getJavaName()
Retrieves the name for this signature algorithm as it would be used
internally by Java.
|
static java.lang.String |
getNameOrOID(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.
|
OID |
getOID()
Retrieves the OID for this signature algorithm.
|
java.lang.String |
getUserFriendlyName()
Retrieves the user-friendly name for this signature algorithm.
|
java.lang.String |
toString()
Retrieves a string representation of this signature algorithm identifier.
|
static SignatureAlgorithmIdentifier |
valueOf(java.lang.String name)
Returns 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.
|
public static final SignatureAlgorithmIdentifier MD2_WITH_RSA
public static final SignatureAlgorithmIdentifier MD5_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_1_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_224_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_256_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_384_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_512_WITH_RSA
public static final SignatureAlgorithmIdentifier SHA_1_WITH_DSA
public static final SignatureAlgorithmIdentifier SHA_224_WITH_DSA
public static final SignatureAlgorithmIdentifier SHA_256_WITH_DSA
public static final SignatureAlgorithmIdentifier SHA_1_WITH_ECDSA
public static final SignatureAlgorithmIdentifier SHA_224_WITH_ECDSA
public static final SignatureAlgorithmIdentifier SHA_256_WITH_ECDSA
public static final SignatureAlgorithmIdentifier SHA_384_WITH_ECDSA
public static final SignatureAlgorithmIdentifier SHA_512_WITH_ECDSA
public static SignatureAlgorithmIdentifier[] values()
for (SignatureAlgorithmIdentifier c : SignatureAlgorithmIdentifier.values()) System.out.println(c);
public static SignatureAlgorithmIdentifier 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 getJavaName()
@NotNull public java.lang.String getUserFriendlyName()
@Nullable public static SignatureAlgorithmIdentifier forOID(@NotNull OID oid)
oid
- The OID for the signature algorithm identifier instance to
retrieve.null
if the provided OID does not reference a known
signature algorithm identifier.@Nullable public static SignatureAlgorithmIdentifier forName(@NotNull java.lang.String name)
name
- The name of the signature algorithm identifier instance to
retrieve.null
if the provided name does not reference a known
signature algorithm identifier.@NotNull public static java.lang.String getNameOrOID(@NotNull OID oid)
oid
- The OID for the signature algorithm identifier to retrieve.@NotNull public java.lang.String toString()
toString
in class java.lang.Enum<SignatureAlgorithmIdentifier>