Class AbstractSignerAttr
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.cades.attributes.signed.AbstractSignerAttr
- All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Direct Known Subclasses:
IdAaEtsSignerAttr
,SignerAttributeV2
public class AbstractSignerAttr extends Object implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
-
Constructor Summary
Constructors Constructor Description AbstractSignerAttr(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion, AbstractVerifier signatureVerifier, Integer index)
AbstractSignerAttr(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion, org.bouncycastle.asn1.cms.Attribute genericEncoding)
AbstractSignerAttr(String identifier, Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,List<org.bouncycastle.asn1.ASN1Encodable>> claimedAttributes, List<org.bouncycastle.asn1.x509.AttributeCertificate> attributeCertificates)
AbstractSignerAttr(String identifier, Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,List<org.bouncycastle.asn1.ASN1Encodable>> claimedAttributes, List<org.bouncycastle.asn1.x509.AttributeCertificate> attributeCertificates, List<org.bouncycastle.asn1.ASN1Encodable> signerAssertions)
-
Method Summary
Modifier and Type Method Description List<org.bouncycastle.asn1.x509.AttributeCertificate>
getAttributeCertificates()
Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,List<org.bouncycastle.asn1.ASN1Encodable>>
getClaimedAttributes()
org.bouncycastle.asn1.cms.Attribute
getEncoded()
Retorna o atributo codificadoString
getIdentifier()
Retorna o identificador do atributoList<org.bouncycastle.asn1.ASN1Encodable>
getSignedAssertions()
boolean
isSigned()
Informa se o atributo é assinado.boolean
isUnique()
Verifica se o atributo deve ter apenas uma instância na assinaturavoid
validate()
Valida o atributo de acordo com suas regras específicas (ver normas da RFC e do ETSI do respectivo tipo de assinatura para cada atributo).
-
Constructor Details
-
AbstractSignerAttr
-
AbstractSignerAttr
-
AbstractSignerAttr
public AbstractSignerAttr(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion, org.bouncycastle.asn1.cms.Attribute genericEncoding) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
AbstractSignerAttr
public AbstractSignerAttr(String identifier, boolean hasOtherAttrCerts, boolean hasSignedAssertion, AbstractVerifier signatureVerifier, Integer index) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
-
Method Details
-
getIdentifier
Description copied from interface:SignatureAttribute
Retorna o identificador do atributo- Specified by:
getIdentifier
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O identificador do atributo
-
validate
public void validate()Description copied from interface:SignatureAttribute
Valida o atributo de acordo com suas regras específicas (ver normas da RFC e do ETSI do respectivo tipo de assinatura para cada atributo).- Specified by:
validate
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
-
isSigned
public boolean isSigned()Description copied from interface:SignatureAttribute
Informa se o atributo é assinado.- Specified by:
isSigned
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Description copied from interface:SignatureAttribute
Verifica se o atributo deve ter apenas uma instância na assinatura- Specified by:
isUnique
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- Indica se o atributo deve ter apenas uma instância na assinatura
-
getClaimedAttributes
-
getAttributeCertificates
-
getSignedAssertions
public List<org.bouncycastle.asn1.ASN1Encodable> getSignedAssertions() throws SignatureAttributeException- Throws:
SignatureAttributeException
-
getEncoded
public org.bouncycastle.asn1.cms.Attribute getEncoded()Description copied from interface:SignatureAttribute
Retorna o atributo codificado- Specified by:
getEncoded
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O atributo no formato em que foi parametrizado a classe
-