Record Class NotFoundSignaturePolicy
java.lang.Object
java.lang.Record
br.ufsc.labsec.signature.conformanceVerifier.signaturePolicy.decoder.NotFoundSignaturePolicy
- All Implemented Interfaces:
SignaturePolicyInstance, SignaturePolicyInstanceInterface, Cacheable, org.bouncycastle.util.Encodable
public record NotFoundSignaturePolicy(String policyIdentifier, Profile.AdESType adESType)
extends Record
implements SignaturePolicyInstance
-
Constructor Summary
ConstructorsConstructorDescriptionNotFoundSignaturePolicy(String policyIdentifier, Profile.AdESType adESType) Creates an instance of aNotFoundSignaturePolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadESType()Returns the value of theadESTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Retorna o tipo do perfilRetorna o atributoSignPolicyHashAlg.byte[]Retorna os bytes da políticabyte[]getEncodedHash(String algorithm) byte[]Retorna o atributoSignPolicyHash.Retorna a política de validação.Retorna o oid da política.final inthashCode()Returns a hash code value for this object.booleanisFound()Informa se a política está corretamente definidabooleanisXML()Verifica se a Política de Assinatura é XMLReturns the value of thepolicyIdentifierrecord component.final StringtoString()Returns a string representation of this record class.booleanverifica o resumo criptográfico do SignPolicyInfo da políticaMethods inherited from interface SignaturePolicyInstance
isNotFoundMethods inherited from interface SignaturePolicyInstanceInterface
getCacheKey, getSignaturePolicyName
-
Constructor Details
-
NotFoundSignaturePolicy
Creates an instance of aNotFoundSignaturePolicyrecord class.- Parameters:
policyIdentifier- the value for thepolicyIdentifierrecord componentadESType- the value for theadESTyperecord component
-
-
Method Details
-
getSignPolicyIdentifier
Description copied from interface:SignaturePolicyInstanceInterfaceRetorna o oid da política.- Specified by:
getSignPolicyIdentifierin interfaceSignaturePolicyInstanceInterface- Returns:
- O valor do oid da política
-
getAdESLevel
Description copied from interface:SignaturePolicyInstanceRetorna o tipo do perfil- Specified by:
getAdESLevelin interfaceSignaturePolicyInstance- Returns:
- tipo do perfil
-
getAlgorithmIdentifier
Description copied from interface:SignaturePolicyInstanceRetorna o atributoSignPolicyHashAlg.- Specified by:
getAlgorithmIdentifierin interfaceSignaturePolicyInstance- Returns:
- O valor do atributo
-
getSignatureValidationPolicy
Description copied from interface:SignaturePolicyInstanceRetorna a política de validação.- Specified by:
getSignatureValidationPolicyin interfaceSignaturePolicyInstance- Returns:
- política de validação
-
getExpectedSignPolicyInfoHash
public byte[] getExpectedSignPolicyInfoHash()Description copied from interface:SignaturePolicyInstanceRetorna o atributoSignPolicyHash.- Specified by:
getExpectedSignPolicyInfoHashin interfaceSignaturePolicyInstance- Returns:
- O valor do atributo
-
getEncoded
public byte[] getEncoded()Description copied from interface:SignaturePolicyInstanceRetorna os bytes da política- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Specified by:
getEncodedin interfaceSignaturePolicyInstance- Returns:
- array de bytes da política
-
getEncodedHash
- Specified by:
getEncodedHashin interfaceSignaturePolicyInstance- Throws:
NoSuchAlgorithmException
-
isFound
public boolean isFound()Description copied from interface:SignaturePolicyInstanceInforma se a política está corretamente definida- Specified by:
isFoundin interfaceSignaturePolicyInstance- Returns:
- se a política está corretamente definida
-
isXML
public boolean isXML()Description copied from interface:SignaturePolicyInstanceInterfaceVerifica se a Política de Assinatura é XML- Specified by:
isXMLin interfaceSignaturePolicyInstanceInterface- Returns:
- Indica se a Política de Assinatura é XML
-
validateHash
public boolean validateHash()Description copied from interface:SignaturePolicyInstanceverifica o resumo criptográfico do SignPolicyInfo da política- Specified by:
validateHashin interfaceSignaturePolicyInstance- Returns:
- verdadeiro se o resumo criptográfico ser o esperado
-
getSignaturePolicyType
- Specified by:
getSignaturePolicyTypein interfaceSignaturePolicyInstanceInterface
-
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). -
policyIdentifier
Returns the value of thepolicyIdentifierrecord component.- Returns:
- the value of the
policyIdentifierrecord component
-
adESType
Returns the value of theadESTyperecord component.- Specified by:
adESTypein interfaceSignaturePolicyInstanceInterface- Returns:
- the value of the
adESTyperecord component
-