Class AbstractRevocationCreator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>>
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<Info,Encod,Sig>
br.ufsc.labsec.signature.signer.creator.AbstractRevocationCreator<Info,Encod,Sig>
- Direct Known Subclasses:
AttributeRevocationCreator,RevocationCreator
public abstract class AbstractRevocationCreator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>> extends UnsignedAttributeCreator<Info,Encod,Sig>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractRevocationCreator.ExclusionRuleprotected static classAbstractRevocationCreator.IntermediateCertificateRuleprotected static interfaceAbstractRevocationCreator.RevocationRuleprotected static interfaceAbstractRevocationCreator.RevocationRulesprotected static classAbstractRevocationCreator.SigningCertificateRule -
Field Summary
Fields Modifier and Type Field Description protected AttributeCertificateCollectionattrCertificateCollectionprotected CertificateCollectioncertificateCollectionprotected CertificateValidationcertificateValidationprotected Componentcomponentprotected SignaturePolicyInterfacesignaturePolicyInterface -
Constructor Summary
Constructors Constructor Description AbstractRevocationCreator(AbstractRevocationCreator.RevocationRules rule, Component component, CertificateValidation certificateValidation, SignaturePolicyInterface signaturePolicyInterface, CertificateCollection certificateCollection, AttributeCertificateCollection attrCertificateCollection, CRLRevocationInformation crlCollection, OCSPRevocationInformation ocspCollections) -
Method Summary
Modifier and Type Method Description abstract SignatureAttribute<Encod>constructAttribute(Component component, Collection<CRL> crls, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocps, org.bouncycastle.asn1.esf.OtherRevVals otherRevocationValues)protected org.apache.commons.lang3.tuple.Pair<Set<CRL>,Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>>generateRevocation(FileToBeSigned<? extends Info> fileToBeSigned, CertPath certPath, Sig signature)static Optional<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>getResponseObject(org.bouncycastle.cert.ocsp.OCSPResp resp)abstract Set<CRL>otherCRLsToExclude(CRLRevocationInformation crlCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature)abstract Set<CRL>otherCRLsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, CRLRevocationInformation crlCollection, List<CRL> certpathCRLs, CertPath certPath, Set<TrustAnchor> anchors, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature)abstract Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>otherOCSPsToExclude(OCSPRevocationInformation crlCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature)abstract 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 Info> fileToBeSigned, Sig signature)Methods inherited from class br.ufsc.labsec.signature.signer.UnsignedAttributeCreator
createRevocationData, getAttribute, isSigned
-
Field Details
-
component
-
certificateValidation
-
signaturePolicyInterface
-
certificateCollection
-
attrCertificateCollection
-
-
Constructor Details
-
AbstractRevocationCreator
public AbstractRevocationCreator(AbstractRevocationCreator.RevocationRules rule, Component component, CertificateValidation certificateValidation, SignaturePolicyInterface signaturePolicyInterface, CertificateCollection certificateCollection, AttributeCertificateCollection attrCertificateCollection, CRLRevocationInformation crlCollection, OCSPRevocationInformation ocspCollections)
-
-
Method Details
-
generateRevocation
protected org.apache.commons.lang3.tuple.Pair<Set<CRL>,Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>> generateRevocation(FileToBeSigned<? extends Info> fileToBeSigned, CertPath certPath, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
getResponseObject
public static Optional<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> getResponseObject(org.bouncycastle.cert.ocsp.OCSPResp resp) -
otherCRLsToExclude
public abstract Set<CRL> otherCRLsToExclude(CRLRevocationInformation crlCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
otherOCSPsToExclude
public abstract Set<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> otherOCSPsToExclude(OCSPRevocationInformation crlCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
otherCRLsToInclude
public abstract Set<CRL> otherCRLsToInclude(CertificateValidation certificateValidation, CertificateCollection certificateCollection, CRLRevocationInformation crlCollection, List<CRL> certpathCRLs, CertPath certPath, Set<TrustAnchor> anchors, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
otherOCSPsToInclude
public abstract 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 Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
constructAttribute
public abstract SignatureAttribute<Encod> constructAttribute(Component component, Collection<CRL> crls, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocps, org.bouncycastle.asn1.esf.OtherRevVals otherRevocationValues) throws SignatureAttributeException- Throws:
SignatureAttributeException
-