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()
StatusRequest
needCertificate
in interface StatusRequest
public boolean needSignature()
StatusRequest
needSignature
in interface StatusRequest
public boolean isReady()
StatusRequest
isReady
in interface StatusRequest
public void setIsReady(boolean value)
public byte[] getSignatureData()
StatusRequest
getSignatureData
in interface StatusRequest
public int[] getSignatureDataByteRange()
StatusRequest
getSignatureDataByteRange
in interface StatusRequest
public void setCertificate(byte[] encodedCertificate) throws CertificateException
StatusRequest
setCertificate
in interface StatusRequest
CertificateException
public void setSigature(byte[] signatureValue)
StatusRequest
setSigature
in interface StatusRequest