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 codificado
    String getIdentifier()
    Retorna o identificador do atributo
    List<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 assinatura
    void 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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractSignerAttr

      public 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)
    • AbstractSignerAttr

      public AbstractSignerAttr​(String identifier, Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,​List<org.bouncycastle.asn1.ASN1Encodable>> claimedAttributes, List<org.bouncycastle.asn1.x509.AttributeCertificate> attributeCertificates)
    • 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

      public String getIdentifier()
      Description copied from interface: SignatureAttribute
      Retorna o identificador do atributo
      Specified by:
      getIdentifier in interface SignatureAttribute<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 interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
    • isSigned

      public boolean isSigned()
      Description copied from interface: SignatureAttribute
      Informa se o atributo é assinado.
      Specified by:
      isSigned in interface SignatureAttribute<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 interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      Indica se o atributo deve ter apenas uma instância na assinatura
    • getClaimedAttributes

      public Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,​List<org.bouncycastle.asn1.ASN1Encodable>> getClaimedAttributes()
    • getAttributeCertificates

      public List<org.bouncycastle.asn1.x509.AttributeCertificate> 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 interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      O atributo no formato em que foi parametrizado a classe