public abstract class ApprovalSignatureCMS
extends java.lang.Object
Constructor and Description |
---|
ApprovalSignatureCMS() |
Modifier and Type | Method and Description |
---|---|
static iaik.x509.X509Certificate[] |
getCertificateChain(CadesSignature cadesSignature)
Get the signer's certificate chain from the given CAdES signature.
|
static boolean |
getCrlRevocationStatus(CadesSignature cadesSignature,
RevocationInfoArchival revocationInfos)
Checks whether the signer's certificate is contained in the crl that is included in the
signature's revocation information.
|
static iaik.x509.ocsp.CertStatus |
getOcspRevocationStatus(CadesSignature cadesSignature,
RevocationInfoArchival revocationInfos)
Parses the OCSP responses included in the given revocation information.
|
static RevocationInfoArchival |
getRevocationInformation(CadesSignature cadesSignature)
Extract revocation information if included.
|
static iaik.x509.X509Certificate |
getSignerCertificate(CadesSignature cadesSignature)
Get the signer certificate from the given CAdES signature.
|
static iaik.x509.X509Certificate |
verifySignatureValue(CadesSignature cadesSignature)
Verify the signature value from the given CAdES signature.
|
public static RevocationInfoArchival getRevocationInformation(CadesSignature cadesSignature) throws CmsCadesException
cadesSignature
- the cades signature to extract the revocation information fromCmsCadesException
- if the revocation attribute can't be parsed or the revocation type is unknownpublic static iaik.x509.ocsp.CertStatus getOcspRevocationStatus(CadesSignature cadesSignature, RevocationInfoArchival revocationInfos) throws CmsCadesException
cadesSignature
- the cades signature to extract the signer's certificate fromrevocationInfos
- the revocation information to be checkedCmsCadesException
- if no revocation infos are included or can't be readpublic static boolean getCrlRevocationStatus(CadesSignature cadesSignature, RevocationInfoArchival revocationInfos) throws CmsCadesException
cadesSignature
- the cades signature to extract the signer's certificate fromrevocationInfos
- the revocation information to be checkedCmsCadesException
- if no revocation infos are included or can't be readpublic static iaik.x509.X509Certificate getSignerCertificate(CadesSignature cadesSignature) throws CmsCadesException
cadesSignature
- the cades signature to extract the certificate fromCmsCadesException
- if requested certificate is not containedpublic static iaik.x509.X509Certificate[] getCertificateChain(CadesSignature cadesSignature) throws CmsCadesException
cadesSignature
- the cades signature to extract the certificate chain fromCmsCadesException
- if requested certificate chain is not containedpublic static iaik.x509.X509Certificate verifySignatureValue(CadesSignature cadesSignature) throws CmsCadesException, iaik.cms.CMSSignatureException
cadesSignature
- the cades signature to verifyCmsCadesException
- if no signature could be foundiaik.cms.CMSSignatureException
- if the signature turns out to be incorrect or there is no signer with the given
certificate or the certificate