net.sourceforge.jaulp.file.checksum
Enum Algorithm

java.lang.Object
  extended by java.lang.Enum<Algorithm>
      extended by net.sourceforge.jaulp.file.checksum.Algorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Algorithm>

public enum Algorithm
extends java.lang.Enum<Algorithm>

The Enum Algorithm.

Version:
1.0
Author:
Asterios Raptis

Enum Constant Summary
MD2
          The enum constant for MD2 algorithm.
MD4
          The enum constant for MD4 algorithm.
MD5
          The enum constant for MD5 algorithm.
SHA_1
          The enum constant for SHA-1 algorithm.
SHA_256
          The enum constant for SHA-256 algorithm.
SHA_384
          The enum constant for SHA-384 algorithm.
SHA_512
          The enum constant for SHA-512 algorithm.
 
Method Summary
 java.lang.String getAlgorithm()
          Gets the algorithm.
static Algorithm valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Algorithm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MD2

public static final Algorithm MD2
The enum constant for MD2 algorithm.


MD4

public static final Algorithm MD4
The enum constant for MD4 algorithm.


MD5

public static final Algorithm MD5
The enum constant for MD5 algorithm.


SHA_1

public static final Algorithm SHA_1
The enum constant for SHA-1 algorithm.


SHA_256

public static final Algorithm SHA_256
The enum constant for SHA-256 algorithm.


SHA_384

public static final Algorithm SHA_384
The enum constant for SHA-384 algorithm.


SHA_512

public static final Algorithm SHA_512
The enum constant for SHA-512 algorithm.

Method Detail

values

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

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

valueOf

public static Algorithm 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 name
java.lang.NullPointerException - if the argument is null

getAlgorithm

public java.lang.String getAlgorithm()
Gets the algorithm.

Returns:
the algorithm


Copyright © 2010. All Rights Reserved.