public class SignResultImpl extends java.lang.Object implements SignResult
Modifier and Type | Field and Description |
---|---|
protected java.security.cert.X509Certificate |
certificate |
protected DataSink |
dataSink |
protected SignaturePosition |
position |
Constructor and Description |
---|
SignResultImpl(DataSink dataSink) |
Modifier and Type | Method and Description |
---|---|
DataSink |
getOutputDocument()
Returns the filled output data sink.
|
SignaturePosition |
getSignaturePosition()
Returns the position where the signature is finally placed.
|
java.security.cert.X509Certificate |
getSignerCertificate()
Returns the certificate of the signer.
|
void |
setSignaturePosition(SignaturePosition position) |
void |
setSignerCertificate(java.security.cert.X509Certificate certificate) |
protected DataSink dataSink
protected java.security.cert.X509Certificate certificate
protected SignaturePosition position
public SignResultImpl(DataSink dataSink)
public DataSink getOutputDocument()
SignResult
getOutputDocument
in interface SignResult
public java.security.cert.X509Certificate getSignerCertificate()
SignResult
getSignerCertificate
in interface SignResult
public SignaturePosition getSignaturePosition()
SignResult
This information can be useful for post-processing the document.
Consult the PDF-AS documentation section Commandline for further information about positioning.
getSignaturePosition
in interface SignResult
public void setSignerCertificate(java.security.cert.X509Certificate certificate)
public void setSignaturePosition(SignaturePosition position)