gov.loc.repository.bagit
Enum Manifest.Algorithm

java.lang.Object
  extended by java.lang.Enum<Manifest.Algorithm>
      extended by gov.loc.repository.bagit.Manifest.Algorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Manifest.Algorithm>
Enclosing interface:
Manifest

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


Enum Constant Summary
MD5
           
SHA1
           
SHA256
           
SHA512
           
 
Field Summary
 java.lang.String bagItAlgorithm
           
 java.lang.String javaSecurityAlgorithm
           
 
Method Summary
static Manifest.Algorithm valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Manifest.Algorithm valueOfBagItAlgorithm(java.lang.String bagItAlgorithm)
           
static Manifest.Algorithm valueOfJavaSecurityAlgorithm(java.lang.String javaSecurityAlgorithm)
           
static Manifest.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

MD5

public static final Manifest.Algorithm MD5

SHA1

public static final Manifest.Algorithm SHA1

SHA256

public static final Manifest.Algorithm SHA256

SHA512

public static final Manifest.Algorithm SHA512
Field Detail

bagItAlgorithm

public java.lang.String bagItAlgorithm

javaSecurityAlgorithm

public java.lang.String javaSecurityAlgorithm
Method Detail

values

public static Manifest.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 (Manifest.Algorithm c : Manifest.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 Manifest.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

valueOfBagItAlgorithm

public static Manifest.Algorithm valueOfBagItAlgorithm(java.lang.String bagItAlgorithm)
                                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

valueOfJavaSecurityAlgorithm

public static Manifest.Algorithm valueOfJavaSecurityAlgorithm(java.lang.String javaSecurityAlgorithm)
                                                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException