Package org.eclipse.cbi.common.security
Enum SignatureAlgorithm
- java.lang.Object
-
- java.lang.Enum<SignatureAlgorithm>
-
- org.eclipse.cbi.common.security.SignatureAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SignatureAlgorithm>
public enum SignatureAlgorithm extends java.lang.Enum<SignatureAlgorithm>
A enumeration ofSignature
algorithm available in Java 8 as specified in the document " standard names for algorithms".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
MD2withRSA
MD5withRSA
NONEwithECDSA
NONEwithRSA
SHA1withDSA
SHA1withECDSA
SHA1withRSA
SHA224withDSA
SHA224withECDSA
SHA224withRSA
SHA256withDSA
SHA256withECDSA
SHA256withRSA
SHA384withECDSA
SHA384withRSA
SHA512withECDSA
SHA512withRSA
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>
aliases
private java.lang.String
standardName
-
Constructor Summary
Constructors Modifier Constructor Description private
SignatureAlgorithm(java.lang.String standardName, java.lang.String... alias)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SignatureAlgorithm
fromStandardName(java.lang.String signatureAlgorithmName)
java.lang.String
standardName()
Returns the standard name of theSignature
algorithm as specified in the document " standard names for algorithms"static SignatureAlgorithm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SignatureAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final SignatureAlgorithm DEFAULT
-
NONEwithRSA
public static final SignatureAlgorithm NONEwithRSA
-
MD2withRSA
public static final SignatureAlgorithm MD2withRSA
-
MD5withRSA
public static final SignatureAlgorithm MD5withRSA
-
SHA1withRSA
public static final SignatureAlgorithm SHA1withRSA
-
SHA224withRSA
public static final SignatureAlgorithm SHA224withRSA
-
SHA256withRSA
public static final SignatureAlgorithm SHA256withRSA
-
SHA384withRSA
public static final SignatureAlgorithm SHA384withRSA
-
SHA512withRSA
public static final SignatureAlgorithm SHA512withRSA
-
SHA1withDSA
public static final SignatureAlgorithm SHA1withDSA
-
SHA224withDSA
public static final SignatureAlgorithm SHA224withDSA
-
SHA256withDSA
public static final SignatureAlgorithm SHA256withDSA
-
NONEwithECDSA
public static final SignatureAlgorithm NONEwithECDSA
-
SHA1withECDSA
public static final SignatureAlgorithm SHA1withECDSA
-
SHA224withECDSA
public static final SignatureAlgorithm SHA224withECDSA
-
SHA256withECDSA
public static final SignatureAlgorithm SHA256withECDSA
-
SHA384withECDSA
public static final SignatureAlgorithm SHA384withECDSA
-
SHA512withECDSA
public static final SignatureAlgorithm SHA512withECDSA
-
-
Method Detail
-
values
public static SignatureAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SignatureAlgorithm c : SignatureAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SignatureAlgorithm valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
standardName
public java.lang.String standardName()
Returns the standard name of theSignature
algorithm as specified in the document " standard names for algorithms"- Returns:
- the standard name of the algorithm.
-
fromStandardName
public static SignatureAlgorithm fromStandardName(java.lang.String signatureAlgorithmName)
-
-