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 -
Constructor Summary
ConstructorsConstructorDescriptionIdAaMsgSigDigest(byte[] digestValue) Creates an instance of aIdAaMsgSigDigestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thedigestValuerecord component.final 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 assinaturafinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
IDENTIFIER
-
-
Constructor Details
-
IdAaMsgSigDigest
public IdAaMsgSigDigest(byte[] digestValue) Creates an instance of aIdAaMsgSigDigestrecord class.- Parameters:
digestValue- the value for thedigestValuerecord 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). -
digestValue
public byte[] digestValue()Returns the value of thedigestValuerecord component.- Returns:
- the value of the
digestValuerecord component
-