Record Class IdAaReceiptRequest

java.lang.Object
java.lang.Record
br.ufsc.labsec.parser.cades.attributes.signed.IdAaReceiptRequest
Record Components:
signedContentIdentifier - Identificador da requisicção do recibo
receiptsFrom - Especifica o(s) remetente(s) do recibo, seguindo a seguinte estrutura ASN1 apresentada na RFC 2634:
                               ReceiptsFrom ::= CHOICE {
                               allOrFirstTier [0] AllOrFirstTier,
                               -- formerly "allOrNone [0]AllOrNone"
                               receiptList [1] SEQUENCE OF GeneralNames
                               }
                               
receiptsTo - Destinatário(s) do recibo
All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>

public record IdAaReceiptRequest(byte[] signedContentIdentifier, org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom, org.bouncycastle.asn1.ASN1Sequence receiptsTo) extends Record implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
Representa o atributo id-aa-receiptRequest definido na RFC 2634. Este atributo é usado para requisitar um recibo. Estrutura ASN1:
ReceiptRequest ::= SEQUENCE {
  signedContentIdentifier ContentIdentifier,
  receiptsFrom ReceiptsFrom,
  receiptsTo SEQUENCE SIZE (1..ub-receiptsTo) OF GeneralNames
}
  • Field Summary

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

    Constructors
    Constructor
    Description
    IdAaReceiptRequest(byte[] signedContentIdentifier, org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom, org.bouncycastle.asn1.ASN1Sequence receiptsTo)
    Creates an instance of a IdAaReceiptRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    org.bouncycastle.asn1.ASN1TaggedObject
    Returns the value of the receiptsFrom record component.
    org.bouncycastle.asn1.ASN1Sequence
    Returns the value of the receiptsTo record component.
    byte[]
    Returns the value of the signedContentIdentifier record component.
    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

    • IdAaReceiptRequest

      public IdAaReceiptRequest(byte[] signedContentIdentifier, org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom, org.bouncycastle.asn1.ASN1Sequence receiptsTo)
      Creates an instance of a IdAaReceiptRequest record class.
      Parameters:
      signedContentIdentifier - the value for the signedContentIdentifier record component
      receiptsFrom - the value for the receiptsFrom record component
      receiptsTo - the value for the receiptsTo 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.
    • signedContentIdentifier

      public byte[] signedContentIdentifier()
      Returns the value of the signedContentIdentifier record component.
      Returns:
      the value of the signedContentIdentifier record component
    • receiptsFrom

      public org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom()
      Returns the value of the receiptsFrom record component.
      Returns:
      the value of the receiptsFrom record component
    • receiptsTo

      public org.bouncycastle.asn1.ASN1Sequence receiptsTo()
      Returns the value of the receiptsTo record component.
      Returns:
      the value of the receiptsTo record component