Enum CipherAlgorithm
- java.lang.Object
-
- java.lang.Enum<CipherAlgorithm>
-
- org.apache.syncope.common.lib.types.CipherAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<CipherAlgorithm>
public enum CipherAlgorithm extends Enum<CipherAlgorithm>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
boolean
isInvertible()
boolean
isSalted()
static CipherAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static CipherAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHA
public static final CipherAlgorithm SHA
-
SHA1
public static final CipherAlgorithm SHA1
-
SHA256
public static final CipherAlgorithm SHA256
-
SHA512
public static final CipherAlgorithm SHA512
-
AES
public static final CipherAlgorithm AES
-
SMD5
public static final CipherAlgorithm SMD5
-
SSHA
public static final CipherAlgorithm SSHA
-
SSHA1
public static final CipherAlgorithm SSHA1
-
SSHA256
public static final CipherAlgorithm SSHA256
-
SSHA512
public static final CipherAlgorithm SSHA512
-
BCRYPT
public static final CipherAlgorithm BCRYPT
-
-
Method Detail
-
values
public static CipherAlgorithm[] 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 (CipherAlgorithm c : CipherAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CipherAlgorithm 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
-
getAlgorithm
public String getAlgorithm()
-
isInvertible
public boolean isInvertible()
-
isSalted
public boolean isSalted()
-
-