iaik.xkms
Enum SecretAlgorithm

Object
  extended by Enum<SecretAlgorithm>
      extended by SecretAlgorithm
All Implemented Interfaces:
Serializable, Comparable<SecretAlgorithm>

public enum SecretAlgorithm
extends Enum<SecretAlgorithm>

Constants for symmetric encryption algorithms.


Enum Constant Summary
AES128
          Advanced Encryption Standard (AES) with 128 bit key.
AES192
          Advanced Encryption Standard (AES) with 192 bit key.
AES256
          Advanced Encryption Standard (AES) with 256 bit key.
TRIPLEDES
          Triple Data Encryption Algorithm (DES) with 3*56(=192) bit key.
 
Method Summary
static SecretAlgorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecretAlgorithm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TRIPLEDES

public static final SecretAlgorithm TRIPLEDES
Triple Data Encryption Algorithm (DES) with 3*56(=192) bit key.


AES128

public static final SecretAlgorithm AES128
Advanced Encryption Standard (AES) with 128 bit key.


AES192

public static final SecretAlgorithm AES192
Advanced Encryption Standard (AES) with 192 bit key.


AES256

public static final SecretAlgorithm AES256
Advanced Encryption Standard (AES) with 256 bit key.

Method Detail

values

public static SecretAlgorithm[] 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 (SecretAlgorithm c : SecretAlgorithm.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SecretAlgorithm 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 name
NullPointerException - if the argument is null