com.adobe.livecycle.signatures.client.spi.types
Class DocumentHash

java.lang.Object
  extended by com.adobe.livecycle.signatures.client.spi.types.DocumentHash
All Implemented Interfaces:
java.io.Serializable

public class DocumentHash
extends java.lang.Object
implements java.io.Serializable

Represents the hashing method that is used for a signed document. A hash is an algorithm that creates a unique value from the bytes of a document that the signature handler uses.

See Also:
Serialized Form

Constructor Summary
DocumentHash(java.net.URI digestAlgorithm, byte[] digestValue)
          A constructor that creates a DocumentHash object.
 
Method Summary
 java.net.URI getDigestAlgorithm()
          Retrieves the digest algorithm.
 byte[] getDigestValue()
          Retrieves the digest value.
 void setDigestAlgorithm(java.net.URI digestAlgorithm)
          Sets the digest algorithm.
 void setDigestValue(byte[] digestValue)
          Sets the digest value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHash

public DocumentHash(java.net.URI digestAlgorithm,
                    byte[] digestValue)
A constructor that creates a DocumentHash object.

Parameters:
digestAlgorithm - A URI object that represents the digest algorithm.
digestValue - A byte array that represents the hash value.
Method Detail

getDigestAlgorithm

public java.net.URI getDigestAlgorithm()
Retrieves the digest algorithm.

Returns:
A URI object that represents the digest algorithm.

setDigestAlgorithm

public void setDigestAlgorithm(java.net.URI digestAlgorithm)
Sets the digest algorithm.

Parameters:
digestAlgorithm - A URI object that represents the digest algorithm.

getDigestValue

public byte[] getDigestValue()
Retrieves the digest value.

Returns:
A byte array that represents the digest value.

setDigestValue

public void setDigestValue(byte[] digestValue)
Sets the digest value.

Parameters:
digestValue - A byte array that represents the digest value.


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