at.gv.egiz.pdfas.impl.api.sign
Class SignResultImpl

java.lang.Object
  extended byat.gv.egiz.pdfas.impl.api.sign.SignResultImpl
All Implemented Interfaces:
SignResult

public class SignResultImpl
extends Object
implements SignResult

Implementation of the SignResult interface.

Author:
wprinz

Field Summary
protected  List nonTextObjects
          List NonTextObjectInfo
protected  DataSink outputDocument
          The filled output DataSink.
protected  SignaturePosition signaturePosition
          The signature position.
protected  X509Certificate signerCertificate
          The signer certificate.
 
Constructor Summary
SignResultImpl(DataSink outputDocument, X509Certificate signerCertificate, SignaturePosition signaturePosition, List nonTextObjects)
          Constructor.
 
Method Summary
 List getNonTextualObjects()
          List NonTextObjectInfo
 DataSink getOutputDocument()
          Returns the filled output data sink.
 SignaturePosition getSignaturePosition()
          Returns the position where the signature is finally placed.
 X509Certificate getSignerCertificate()
          Returns the certificate of the signer.
 boolean hasNonTextualObjects()
          Returns if pdf has non textual objects (only for textual signature available).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputDocument

protected DataSink outputDocument
The filled output DataSink.


signerCertificate

protected X509Certificate signerCertificate
The signer certificate.


signaturePosition

protected SignaturePosition signaturePosition
The signature position.


nonTextObjects

protected List nonTextObjects
List NonTextObjectInfo

Constructor Detail

SignResultImpl

public SignResultImpl(DataSink outputDocument,
                      X509Certificate signerCertificate,
                      SignaturePosition signaturePosition,
                      List nonTextObjects)
Constructor.

Parameters:
outputDocument - The filled output DataSink.
signerCertificate - The signer certificate.
signaturePosition - The signature position.
Method Detail

getOutputDocument

public DataSink getOutputDocument()
Description copied from interface: SignResult
Returns the filled output data sink.

Specified by:
getOutputDocument in interface SignResult
Returns:
Returns the filled output data sink.
See Also:
SignResult.getOutputDocument()

getSignaturePosition

public SignaturePosition getSignaturePosition()
Description copied from interface: SignResult
Returns the position where the signature is finally placed.

This information can be useful for post-processing the document.

Consult the PDF-AS documentation section Commandline for further information about positioning.

Specified by:
getSignaturePosition in interface SignResult
Returns:
Returns the position where the signature is finally placed. May return null if no position information is available.
See Also:
SignResult.getSignaturePosition()

getSignerCertificate

public X509Certificate getSignerCertificate()
Description copied from interface: SignResult
Returns the certificate of the signer.

Specified by:
getSignerCertificate in interface SignResult
Returns:
Returns the certificate of the signer.
See Also:
SignResult.getSignerCertificate()

getNonTextualObjects

public List getNonTextualObjects()
List NonTextObjectInfo

Specified by:
getNonTextualObjects in interface SignResult
Returns:
List<NonTextObjectInfo or null of not available (binary signature)

hasNonTextualObjects

public boolean hasNonTextualObjects()
Description copied from interface: SignResult
Returns if pdf has non textual objects (only for textual signature available).

Specified by:
hasNonTextualObjects in interface SignResult
Returns:


Copyright © 2006-2010. All Rights Reserved.