public class StatusRequestImpl extends Object implements StatusRequest
| Constructor and Description |
|---|
StatusRequestImpl() |
| Modifier and Type | Method and Description |
|---|---|
iaik.x509.X509Certificate |
getCertificate() |
byte[] |
getSignature() |
byte[] |
getSignatureData()
Gets the data to be signed
|
int[] |
getSignatureDataByteRange()
Gets the byte range of the data to be signed
|
OperationStatus |
getStatus() |
boolean |
isReady()
If true finishSign in PdfAs can be called to retrieve the signed pdf
|
boolean |
needCertificate()
If true PDF-AS requires the signature certificate
Retrieve the signing certificate and set it via setCertificate
|
boolean |
needSignature()
If true PDF-AS requires a the CAdES signature
use getSignatureData() and getSignatureDataByteRange() to retrieve the
data to be signed and set the signature via setSigature
|
void |
setByteRange(int[] byteRange) |
void |
setCertificate(byte[] encodedCertificate)
Sets the signing certificate
|
void |
setIsReady(boolean value) |
void |
setNeedCertificate(boolean value) |
void |
setNeedSignature(boolean value) |
void |
setSigature(byte[] signatureValue)
Sets the signature
|
void |
setSignatureData(byte[] signatureData) |
void |
setStatus(OperationStatus status) |
public OperationStatus getStatus()
public void setStatus(OperationStatus status)
public void setSignatureData(byte[] signatureData)
public void setByteRange(int[] byteRange)
public iaik.x509.X509Certificate getCertificate()
public byte[] getSignature()
public void setNeedSignature(boolean value)
public void setNeedCertificate(boolean value)
public boolean needCertificate()
StatusRequestneedCertificate in interface StatusRequestpublic boolean needSignature()
StatusRequestneedSignature in interface StatusRequestpublic boolean isReady()
StatusRequestisReady in interface StatusRequestpublic void setIsReady(boolean value)
public byte[] getSignatureData()
StatusRequestgetSignatureData in interface StatusRequestpublic int[] getSignatureDataByteRange()
StatusRequestgetSignatureDataByteRange in interface StatusRequestpublic void setCertificate(byte[] encodedCertificate)
throws CertificateException
StatusRequestsetCertificate in interface StatusRequestCertificateExceptionpublic void setSigature(byte[] signatureValue)
StatusRequestsetSigature in interface StatusRequest