com.adobe.livecycle.signatures.pki.client.types.common
Class HashAlgorithm

java.lang.Object
  extended by java.lang.Enum
      extended by com.adobe.livecycle.signatures.pki.client.types.common.HashAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class HashAlgorithm
extends java.lang.Enum

Represents hash algorithms used to digest the PDF document. You create an instance of this type when you sign or certify a PDF document.

See Also:
Sign(), Certify(), Serialized Form

Field Summary
static HashAlgorithm MD5
          Represents the MD5 algorithm.
static HashAlgorithm RIPEMD160
          Represents the RIPEMD160 algorithm.
static HashAlgorithm SHA1
          Represents the SHA1 algorithm.
static HashAlgorithm SHA256
          Represents the SHA 256 algorithm.
static HashAlgorithm SHA384
          Represents the SHA 384 algorithm.
static HashAlgorithm SHA512
          Represents the SHA 512 algorithm.
 
Method Summary
static HashAlgorithm getValueFromString(java.lang.String id)
          Gets the hash algorithm type from the value provided.
 java.lang.String toString()
           
static HashAlgorithm valueOf(java.lang.String name)
           
static HashAlgorithm[] values()
           
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MD5

public static final HashAlgorithm MD5
Represents the MD5 algorithm.


SHA1

public static final HashAlgorithm SHA1
Represents the SHA1 algorithm.


SHA256

public static final HashAlgorithm SHA256
Represents the SHA 256 algorithm.


SHA384

public static final HashAlgorithm SHA384
Represents the SHA 384 algorithm.


SHA512

public static final HashAlgorithm SHA512
Represents the SHA 512 algorithm.


RIPEMD160

public static final HashAlgorithm RIPEMD160
Represents the RIPEMD160 algorithm.

Method Detail

values

public static HashAlgorithm[] values()

valueOf

public static HashAlgorithm valueOf(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum

getValueFromString

public static HashAlgorithm getValueFromString(java.lang.String id)
Gets the hash algorithm type from the value provided.

Parameters:
id - A string that represents a hash algorithm.
Returns:
The hash algorithm type.


[an error occurred while processing this directive] [an error occurred while processing this directive]