Enum CryptographicAlgorithmName
- java.lang.Object
-
- java.lang.Enum<CryptographicAlgorithmName>
-
- org.silverpeas.core.security.encryption.cipher.CryptographicAlgorithmName
-
- All Implemented Interfaces:
Serializable
,Comparable<CryptographicAlgorithmName>
public enum CryptographicAlgorithmName extends Enum<CryptographicAlgorithmName>
A name of a a cryptographic algorithm (or cipher) supported in Silverpeas.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Gets the unique identifier of this algorithm in the Java Crypto API.String
toString()
Gets the unique identifier of this algorithm in the Java Crypto API.static CryptographicAlgorithmName
valueOf(String name)
Returns the enum constant of this type with the specified name.static CryptographicAlgorithmName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AES
public static final CryptographicAlgorithmName AES
The AES-256 cipher.
-
BLOWFISH
public static final CryptographicAlgorithmName BLOWFISH
The Blowfish cipher.
-
CAST5
public static final CryptographicAlgorithmName CAST5
The CAST5 (CAST-128) cipher.
-
CMS
public static final CryptographicAlgorithmName CMS
The Cryptographic Message Syntax (CMS) based on the syntax of PKCS#7. More than just a cipher, it is an asymmetric-keys and certificate based enciphering process to encrypt and to decrypt digital messages exchanged between two interlocutors.
-
-
Method Detail
-
values
public static CryptographicAlgorithmName[] 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 (CryptographicAlgorithmName c : CryptographicAlgorithmName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptographicAlgorithmName valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public String getId()
Gets the unique identifier of this algorithm in the Java Crypto API.- Returns:
- the identifier of this algorithm.
-
toString
public String toString()
Gets the unique identifier of this algorithm in the Java Crypto API.- Overrides:
toString
in classEnum<CryptographicAlgorithmName>
- Returns:
- the identifier of this algorithm.
-
-