public enum KeyMasterHashingAlgorithm extends java.lang.Enum<KeyMasterHashingAlgorithm>
The type of hashing algorithm used by KeyMaster must also be defined in the Liberator (see the signing-algorithm option of the add-sigkey configuration item in the Caplin Liberator Administration Guide). The Liberator uses this algorithm when determining whether a received token is valid. See also Digital signature algorithm in the Caplin KeyMaster Overview.
Enum Constant and Description |
---|
MD5
Defines the MD5 hash algorithm.
|
RIPEMD160
Defines the RipeMD160 hash algorithm.
|
SHA1
Defines the SHA1 hash algorithm.
|
SHA256
Defines the SHA256 hash algorithm.
|
SHA384
Defines the SHA384 hash algorithm.
|
SHA512
Specifies the use of the SHA512 hash algorithm.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName() |
static KeyMasterHashingAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyMasterHashingAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyMasterHashingAlgorithm MD5
Note: MD5 can produce hash collisions.
public static final KeyMasterHashingAlgorithm SHA256
This hashing algorithm is only supported by Liberator release 4.5.7 and above.
public static final KeyMasterHashingAlgorithm SHA384
This hashing algorithm is only supported by Liberator release 4.5.13 and above.
public static final KeyMasterHashingAlgorithm SHA512
This hashing algorithm is only supported by Liberator release 4.5.13 and above.
public static final KeyMasterHashingAlgorithm RIPEMD160
This hashing algorithm is only supported by Liberator release 4.5.13 and above.
public static final KeyMasterHashingAlgorithm SHA1
This hashing algorithm is only supported by Liberator release 4.5.13 and above.
public static KeyMasterHashingAlgorithm[] values()
for (KeyMasterHashingAlgorithm c : KeyMasterHashingAlgorithm.values()) System.out.println(c);
public static KeyMasterHashingAlgorithm 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 nullpublic java.lang.String getAlgorithmName()
Please send bug reports and comments to Caplin support