public class PadesLTVParameters
extends java.lang.Object
PdfSignatureInstance
Constructor and Description |
---|
PadesLTVParameters()
Constructor for parameters indicating that validation data and a document timestamp shall be
added as given in the PAdES-LTV profile.
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalValidationData(java.security.cert.Certificate[] certificates,
iaik.x509.X509CRL[] crls,
iaik.x509.ocsp.OCSPResponse[] ocspResponses)
Add these validation data globally without reference to a specific signature.
|
void |
addValidationData(byte[] signatureBytes,
java.security.cert.Certificate[] certificates,
iaik.x509.X509CRL[] crls,
iaik.x509.ocsp.OCSPResponse[] ocspResponses)
Add validation data for the given CMS signature (given as signature encoding).
|
void |
addValidationData(iaik.x509.ocsp.OCSPResponse ocspResponse,
java.security.cert.Certificate[] certificates,
iaik.x509.X509CRL[] crls,
iaik.x509.ocsp.OCSPResponse[] ocspResponses)
Add validation data for the given OCSP response.
|
void |
addValidationData(iaik.tsp.TimeStampToken tspToken,
java.security.cert.Certificate[] certificates,
iaik.x509.X509CRL[] crls,
iaik.x509.ocsp.OCSPResponse[] ocspResponses)
Add validation data for the given timestamp token.
|
void |
addValidationData(iaik.x509.X509CRL crl,
java.security.cert.Certificate[] certificates,
iaik.x509.X509CRL[] crls,
iaik.x509.ocsp.OCSPResponse[] ocspResponses)
Add validation data for the given CRL.
|
PadesLTVParameters |
clone() |
CertificateValidationData |
getGlobalValidationData()
Get all global validation data without reference to a specific signature.
|
java.util.Map<java.lang.String,CertificateValidationData> |
getValidationData()
Get the map containing the hashed signatures as key and corresponding validation data.
|
CertificateValidationData |
getValidationData(byte[] signatureEncoding)
Get the validation data corresponding to the given CMS signature (provided as signature
encoding).
|
CertificateValidationData |
getValidationData(iaik.x509.ocsp.OCSPResponse ocspResponse)
Get the validation data corresponding to the given OCSP response.
|
CertificateValidationData |
getValidationData(iaik.tsp.TimeStampToken tspToken)
Get the validation data corresponding to the given timestamp token.
|
CertificateValidationData |
getValidationData(iaik.x509.X509CRL crl)
Get the validation data corresponding to the given CRL.
|
public PadesLTVParameters()
public PadesLTVParameters clone()
clone
in class java.lang.Object
public void addValidationData(byte[] signatureBytes, java.security.cert.Certificate[] certificates, iaik.x509.X509CRL[] crls, iaik.x509.ocsp.OCSPResponse[] ocspResponses) throws PdfSignatureException
signatureBytes
- encoded CMS signaturecertificates
- certificates to be added for this CMS signaturecrls
- crls to be added for this CMS signatureocspResponses
- ocsp responses to be added for this CMS signaturePdfSignatureException
- if the signature bytes can't be hashed or the certificates can't be parsedpublic void addValidationData(iaik.x509.X509CRL crl, java.security.cert.Certificate[] certificates, iaik.x509.X509CRL[] crls, iaik.x509.ocsp.OCSPResponse[] ocspResponses) throws PdfSignatureException
crl
- the CRLcertificates
- certificates to be added for this CRLcrls
- crls to be added for this CRLocspResponses
- ocsp responses to be added for this CRLPdfSignatureException
- if the CRL can't be hashed or the certificates can't be parsedpublic void addValidationData(iaik.x509.ocsp.OCSPResponse ocspResponse, java.security.cert.Certificate[] certificates, iaik.x509.X509CRL[] crls, iaik.x509.ocsp.OCSPResponse[] ocspResponses) throws PdfSignatureException
ocspResponse
- the ocsp responsecertificates
- certificates to be added for this ocsp responsecrls
- crls to be added for this ocsp responseocspResponses
- ocsp responses to be added for this ocsp responsePdfSignatureException
- if the ocsp response can't be hashed or the certificates can't be parsedpublic void addValidationData(iaik.tsp.TimeStampToken tspToken, java.security.cert.Certificate[] certificates, iaik.x509.X509CRL[] crls, iaik.x509.ocsp.OCSPResponse[] ocspResponses) throws PdfSignatureException
tspToken
- the timestamp tokencertificates
- certificates to be added for this timestamp tokencrls
- crls to be added for this timestamp tokenocspResponses
- ocsp responses to be added for this timestamp tokenPdfSignatureException
- if the timestamp token can't be hashed or the certificates can't be parsedpublic void addGlobalValidationData(java.security.cert.Certificate[] certificates, iaik.x509.X509CRL[] crls, iaik.x509.ocsp.OCSPResponse[] ocspResponses) throws PdfSignatureException
certificates
- certificates to be addedcrls
- crls to be addedocspResponses
- ocsp responses to be addedPdfSignatureException
- if the certificates can't be parsedpublic CertificateValidationData getValidationData(byte[] signatureEncoding) throws PdfSignatureException
signatureEncoding
- the encoded CMS signaturePdfSignatureException
- if the signature encoding can't be hashedpublic CertificateValidationData getValidationData(iaik.x509.X509CRL crl) throws PdfSignatureException
crl
- the CRLPdfSignatureException
- if the CRL can't be hashedpublic CertificateValidationData getValidationData(iaik.x509.ocsp.OCSPResponse ocspResponse) throws PdfSignatureException
ocspResponse
- the CRLPdfSignatureException
- if the OCSP response can't be hashedpublic CertificateValidationData getValidationData(iaik.tsp.TimeStampToken tspToken) throws PdfSignatureException
tspToken
- the timestamp tokenPdfSignatureException
- if the timestamp token can't be hashedpublic java.util.Map<java.lang.String,CertificateValidationData> getValidationData()
public CertificateValidationData getGlobalValidationData()