Class AbstractSignerAttrDecoder<Attr extends SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>>
java.lang.Object
br.ufsc.labsec.parser.cades.decoder.signed.AbstractSignerAttrDecoder<Attr>
- All Implemented Interfaces:
CadesAttributeDecoder<Attr>, AttributeDecoder<org.bouncycastle.asn1.cms.Attribute, Attr>
- Direct Known Subclasses:
IdAaEtsSignerAttrDecoder, SignerAttributeV2Decoder
public abstract class AbstractSignerAttrDecoder<Attr extends SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>>
extends Object
implements CadesAttributeDecoder<Attr>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSignerAttrDecoder(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Attrcreate(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier, List<org.bouncycastle.asn1.ASN1Encodable>> claimedAttributes, List<org.bouncycastle.asn1.x509.AttributeCertificate> attributeCertificates, List<org.bouncycastle.asn1.ASN1Encodable> signerAssertions, SignatureAttributeException toBeThrown) protected abstract List<org.bouncycastle.asn1.x509.AttributeCertificate> decodeAttributeCertificates(org.bouncycastle.asn1.ASN1Object object)
-
Field Details
-
identifier
-
hasOtherAttrCerts
protected final boolean hasOtherAttrCerts
-
-
Constructor Details
-
AbstractSignerAttrDecoder
protected AbstractSignerAttrDecoder(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion)
-
-
Method Details
-
decode
public Attr decode(org.bouncycastle.asn1.cms.Attribute encoded, Integer index) throws SignatureAttributeException - Specified by:
decodein interfaceAttributeDecoder<org.bouncycastle.asn1.cms.Attribute, Attr extends SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>>- Throws:
SignatureAttributeException
-
decodeAttributeCertificates
protected abstract List<org.bouncycastle.asn1.x509.AttributeCertificate> decodeAttributeCertificates(org.bouncycastle.asn1.ASN1Object object) throws SignatureAttributeException - Throws:
SignatureAttributeException
-
create
protected abstract Attr create(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier, List<org.bouncycastle.asn1.ASN1Encodable>> claimedAttributes, List<org.bouncycastle.asn1.x509.AttributeCertificate> attributeCertificates, List<org.bouncycastle.asn1.ASN1Encodable> signerAssertions, SignatureAttributeException toBeThrown) throws SignatureAttributeException - Throws:
SignatureAttributeException
-