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 ClassesModifier and TypeClassDescriptionprotected static enumprotected static enumprotected static interfaceprotected static interfaceprotected static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributeCertificateCollectionprotected final CertificateCollectionprotected final CertificateValidationprotected final Componentprotected final SignaturePolicyInterface -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRevocationCreator(AbstractRevocationCreator.RevocationRules rule, Component component, CertificateValidation certificateValidation, SignaturePolicyInterface signaturePolicyInterface, CertificateCollection certificateCollection, AttributeCertificateCollection attrCertificateCollection, CRLRevocationInformation crlCollection, OCSPRevocationInformation ocspCollections) -
Method Summary
Modifier and TypeMethodDescriptionabstract 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) otherCRLsToExclude(CRLRevocationInformation crlCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) 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 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
-