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

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

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

Represents the bytes of a PDF document that a signature handler accepts. Document bytes can be in XML format, base 64 format, or plain bytes. The default is plain bytes.

See Also:
Serialized Form

Constructor Summary
DocumentBytes(java.net.URI documentType, byte[] fullBytes, byte[] hashedBytes)
          A constructor that creates a DocumentBytes object.
 
Method Summary
 java.net.URI getDocumentType()
          Retrieves a URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.
 byte[] getFullBytes()
          Retrives the bytes of a document.
 byte[] getHashedBytes()
          Retrives the hash of a document.
 void setDocumentType(java.net.URI documentType)
          Sets a URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.
 void setFullBytes(byte[] fullBytes)
          Sets the bytes of a document.
 void setHashedBytes(byte[] hashedBytes)
          Sets the hash of a document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBytes

public DocumentBytes(java.net.URI documentType,
                     byte[] fullBytes,
                     byte[] hashedBytes)
A constructor that creates a DocumentBytes object.

Parameters:
documentType - A URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.
fullBytes - A byte array that represents the document bytes.
hashedBytes - A byte array that represents the hash of the document.
Method Detail

getDocumentType

public java.net.URI getDocumentType()
Retrieves a URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.

Returns:
A URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.

setDocumentType

public void setDocumentType(java.net.URI documentType)
Sets a URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.

Parameters:
documentType - A URI object that specifies whether document bytes is in XML format, base 64 format, or plain bytes.

getFullBytes

public byte[] getFullBytes()
Retrives the bytes of a document.

Returns:
A byte array that form the bytes of the document.

setFullBytes

public void setFullBytes(byte[] fullBytes)
Sets the bytes of a document.

Parameters:
fullBytes - A byte array that form the bytes of the document.

getHashedBytes

public byte[] getHashedBytes()
Retrives the hash of a document.

Returns:
A byte array that represents the hash of a document.

setHashedBytes

public void setHashedBytes(byte[] hashedBytes)
Sets the hash of a document.

Parameters:
hashedBytes - A byte array that represents the hash of a document.


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