public class SignResultImpl extends Object implements SignResult
Modifier and Type | Field and Description |
---|---|
protected 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.
|
X509Certificate |
getSignerCertificate()
Returns the certificate of the signer.
|
void |
setSignaturePosition(SignaturePosition position) |
void |
setSignerCertificate(X509Certificate certificate) |
protected DataSink dataSink
protected X509Certificate certificate
protected SignaturePosition position
public SignResultImpl(DataSink dataSink)
public DataSink getOutputDocument()
SignResult
getOutputDocument
in interface SignResult
public 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(X509Certificate certificate)
public void setSignaturePosition(SignaturePosition position)