Class RevocationSignedDataCreator
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
br.ufsc.labsec.signature.signer.creator.AbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
br.ufsc.labsec.signature.signer.creator.RevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.cades.RevocationSignedDataCreator
public class RevocationSignedDataCreator
extends RevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractRevocationCreator
AbstractRevocationCreator.ExclusionRule, AbstractRevocationCreator.IntermediateCertificateRule, AbstractRevocationCreator.RevocationRule, AbstractRevocationCreator.RevocationRules, AbstractRevocationCreator.SigningCertificateRule -
Field Summary
Fields inherited from class AbstractRevocationCreator
attrCertificateCollection, certificateCollection, certificateValidation, component, signaturePolicyInterface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevocationToSignedData(org.bouncycastle.cms.CMSSignedDataStreamGenerator cmsSignedDataGenerator, org.apache.commons.lang3.tuple.Pair<Set<CRL>, Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>> revocationData) SignatureAttribute<org.bouncycastle.asn1.cms.Attribute> constructAttribute(Component component, Collection<CRL> crls, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocps, org.bouncycastle.asn1.esf.OtherRevVals otherRevocationValues) otherCRLsToExclude(CRLRevocationInformation crlCollection, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) otherCRLsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, CRLRevocationInformation crlCollection, List<CRL> certpathCRLs, CertPath certPath, Set<TrustAnchor> anchors, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> otherOCSPsToExclude(OCSPRevocationInformation crlCollection, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> otherOCSPsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, OCSPRevocationInformation ocspCollection, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> certpathOCSPs, CertPath certpath, Set<TrustAnchor> anchors, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) Methods inherited from class RevocationCreator
constructRevocation, getAttributeMethods inherited from class AbstractRevocationCreator
generateRevocation, getResponseObjectMethods inherited from class UnsignedAttributeCreator
createRevocationData, isSigned
-
Constructor Details
-
RevocationSignedDataCreator
-
-
Method Details
-
otherCRLsToExclude
public Set<CRL> otherCRLsToExclude(CRLRevocationInformation crlCollection, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) throws SignatureAttributeException - Specified by:
otherCRLsToExcludein classAbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Throws:
SignatureAttributeException
-
otherOCSPsToExclude
public Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> otherOCSPsToExclude(OCSPRevocationInformation crlCollection, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) throws SignatureAttributeException - Specified by:
otherOCSPsToExcludein classAbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Throws:
SignatureAttributeException
-
otherCRLsToInclude
public Set<CRL> otherCRLsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, CRLRevocationInformation crlCollection, List<CRL> certpathCRLs, CertPath certPath, Set<TrustAnchor> anchors, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) throws SignatureAttributeException - Specified by:
otherCRLsToIncludein classAbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Throws:
SignatureAttributeException
-
otherOCSPsToInclude
public Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> otherOCSPsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, OCSPRevocationInformation ocspCollection, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> certpathOCSPs, CertPath certpath, Set<TrustAnchor> anchors, FileToBeSigned<? extends CadesInformation> fileToBeSigned, CadesSignature signature) throws SignatureAttributeException - Specified by:
otherOCSPsToIncludein classAbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Throws:
SignatureAttributeException
-
constructAttribute
public SignatureAttribute<org.bouncycastle.asn1.cms.Attribute> constructAttribute(Component component, Collection<CRL> crls, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocps, org.bouncycastle.asn1.esf.OtherRevVals otherRevocationValues) throws SignatureAttributeException - Specified by:
constructAttributein classAbstractRevocationCreator<CadesInformation, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Throws:
SignatureAttributeException
-
addRevocationToSignedData
public void addRevocationToSignedData(org.bouncycastle.cms.CMSSignedDataStreamGenerator cmsSignedDataGenerator, org.apache.commons.lang3.tuple.Pair<Set<CRL>, Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>> revocationData) throws CadesSignatureException - Throws:
CadesSignatureException
-