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 reciboreceiptsFrom- 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 -
Constructor Summary
ConstructorsConstructorDescriptionIdAaReceiptRequest(byte[] signedContentIdentifier, org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom, org.bouncycastle.asn1.ASN1Sequence receiptsTo) Creates an instance of aIdAaReceiptRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.bouncycastle.asn1.cms.AttributeRetorna o atributo codificadoRetorna o identificador do atributofinal inthashCode()Returns a hash code value for this object.booleanisSigned()Informa se o atributo é assinado.booleanisUnique()Verifica se o atributo deve ter apenas uma instância na assinaturaorg.bouncycastle.asn1.ASN1TaggedObjectReturns the value of thereceiptsFromrecord component.org.bouncycastle.asn1.ASN1SequenceReturns the value of thereceiptsTorecord component.byte[]Returns the value of thesignedContentIdentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
IDENTIFIER
-
-
Constructor Details
-
IdAaReceiptRequest
public IdAaReceiptRequest(byte[] signedContentIdentifier, org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom, org.bouncycastle.asn1.ASN1Sequence receiptsTo) Creates an instance of aIdAaReceiptRequestrecord class.- Parameters:
signedContentIdentifier- the value for thesignedContentIdentifierrecord componentreceiptsFrom- the value for thereceiptsFromrecord componentreceiptsTo- the value for thereceiptsTorecord component
-
-
Method Details
-
getIdentifier
Description copied from interface:SignatureAttributeRetorna o identificador do atributo- Specified by:
getIdentifierin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- O identificador do atributo
-
getEncoded
Description copied from interface:SignatureAttributeRetorna o atributo codificado- Specified by:
getEncodedin interfaceSignatureAttribute<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:SignatureAttributeInforma se o atributo é assinado.- Specified by:
isSignedin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Description copied from interface:SignatureAttributeVerifica se o atributo deve ter apenas uma instância na assinatura- Specified by:
isUniquein interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo deve ter apenas uma instância na assinatura
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
signedContentIdentifier
public byte[] signedContentIdentifier()Returns the value of thesignedContentIdentifierrecord component.- Returns:
- the value of the
signedContentIdentifierrecord component
-
receiptsFrom
public org.bouncycastle.asn1.ASN1TaggedObject receiptsFrom()Returns the value of thereceiptsFromrecord component.- Returns:
- the value of the
receiptsFromrecord component
-
receiptsTo
public org.bouncycastle.asn1.ASN1Sequence receiptsTo()Returns the value of thereceiptsTorecord component.- Returns:
- the value of the
receiptsTorecord component
-