Record Class IdAaMsgSigDigest

java.lang.Object
java.lang.Record
br.ufsc.labsec.parser.cades.attributes.signed.IdAaMsgSigDigest
All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>

public record IdAaMsgSigDigest(byte[] digestValue) extends Record implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IdAaMsgSigDigest(byte[] digestValue)
    Creates an instance of a IdAaMsgSigDigest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the value of the digestValue record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.cms.Attribute
    Retorna o atributo codificado
    Retorna o identificador do atributo
    final int
    Returns a hash code value for this object.
    boolean
    Informa se o atributo é assinado.
    boolean
    Verifica se o atributo deve ter apenas uma instância na assinatura
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • IDENTIFIER

      public static final String IDENTIFIER
  • Constructor Details

    • IdAaMsgSigDigest

      public IdAaMsgSigDigest(byte[] digestValue)
      Creates an instance of a IdAaMsgSigDigest record class.
      Parameters:
      digestValue - the value for the digestValue record component
  • 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
    • getEncoded

      public org.bouncycastle.asn1.cms.Attribute getEncoded() throws SignatureAttributeException
      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
      Throws:
      SignatureAttributeException
    • 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
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • digestValue

      public byte[] digestValue()
      Returns the value of the digestValue record component.
      Returns:
      the value of the digestValue record component