com.didisoft.pgp
Enum HashAlgorithm.Enum

java.lang.Object
  extended by java.lang.Enum<HashAlgorithm.Enum>
      extended by com.didisoft.pgp.HashAlgorithm.Enum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HashAlgorithm.Enum>
Enclosing interface:
HashAlgorithm

public static enum HashAlgorithm.Enum
extends java.lang.Enum<HashAlgorithm.Enum>


Enum Constant Summary
MD2
           
MD5
           
RIPEMD160
           
SHA1
           
SHA224
           
SHA256
           
SHA384
           
SHA512
           
 
Method Summary
 HashAlgorithm.Enum fromString(java.lang.String hash)
           
static HashAlgorithm.Enum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HashAlgorithm.Enum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SHA1

public static final HashAlgorithm.Enum SHA1

SHA256

public static final HashAlgorithm.Enum SHA256

SHA384

public static final HashAlgorithm.Enum SHA384

SHA512

public static final HashAlgorithm.Enum SHA512

SHA224

public static final HashAlgorithm.Enum SHA224

MD5

public static final HashAlgorithm.Enum MD5

RIPEMD160

public static final HashAlgorithm.Enum RIPEMD160

MD2

public static final HashAlgorithm.Enum MD2
Method Detail

values

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

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

valueOf

public static HashAlgorithm.Enum 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

fromString

public HashAlgorithm.Enum fromString(java.lang.String hash)


Copyright © 2006-2017 DidiSoft Ltd. All Rights Reserved.