Class NotFoundSignaturePolicy
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.signaturePolicy.decoder.NotFoundSignaturePolicy
- All Implemented Interfaces:
SignaturePolicyInstance
public class NotFoundSignaturePolicy extends Object implements SignaturePolicyInstance
-
Constructor Summary
Constructors Constructor Description NotFoundSignaturePolicy(String policyIndentifier)
-
Method Summary
Modifier and Type Method Description Profile.AdESLevel
getAdESLevel()
Retorna o tipo do perfilProfile.AdESType
getAdESType()
Retorna o tipo da política.AlgorithmIdentifier
getAlgorithmIdentifier()
Retorna o atributoSignPolicyHashAlg
.byte[]
getEncoded()
Retorna os bytes da políticabyte[]
getEncodedHash(String algorithm)
byte[]
getExpectedSignPolicyInfoHash()
Retorna o atributoSignPolicyHash
.SignaturePolicyProxy.SignaturePolicyType
getSignaturePolicyType()
SignatureValidationPolicy
getSignatureValidationPolicy()
Retorna a política de validação.String
getSignPolicyIdentifier()
Retorna o oid da política.boolean
isFound()
Informa se a política está corretamente definidaboolean
isXML()
Verifica se a Política de Assinatura é XMLboolean
validateHash()
verifica o resumo criptográfico do SignPolicyInfo da políticaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.conformanceVerifier.signaturePolicy.decoder.SignaturePolicyInstance
getSignaturePolicyName, isNotFound
-
Constructor Details
-
NotFoundSignaturePolicy
-
-
Method Details
-
getSignPolicyIdentifier
Description copied from interface:SignaturePolicyInstance
Retorna o oid da política.- Specified by:
getSignPolicyIdentifier
in interfaceSignaturePolicyInstance
- Returns:
- O valor do oid da política
-
getAdESType
Description copied from interface:SignaturePolicyInstance
Retorna o tipo da política.- Specified by:
getAdESType
in interfaceSignaturePolicyInstance
- Returns:
- tipo da política
-
getAdESLevel
Description copied from interface:SignaturePolicyInstance
Retorna o tipo do perfil- Specified by:
getAdESLevel
in interfaceSignaturePolicyInstance
- Returns:
- tipo do perfil
-
getAlgorithmIdentifier
Description copied from interface:SignaturePolicyInstance
Retorna o atributoSignPolicyHashAlg
.- Specified by:
getAlgorithmIdentifier
in interfaceSignaturePolicyInstance
- Returns:
- O valor do atributo
-
getSignatureValidationPolicy
Description copied from interface:SignaturePolicyInstance
Retorna a política de validação.- Specified by:
getSignatureValidationPolicy
in interfaceSignaturePolicyInstance
- Returns:
- política de validação
-
getExpectedSignPolicyInfoHash
public byte[] getExpectedSignPolicyInfoHash()Description copied from interface:SignaturePolicyInstance
Retorna o atributoSignPolicyHash
.- Specified by:
getExpectedSignPolicyInfoHash
in interfaceSignaturePolicyInstance
- Returns:
- O valor do atributo
-
getEncoded
public byte[] getEncoded()Description copied from interface:SignaturePolicyInstance
Retorna os bytes da política- Specified by:
getEncoded
in interfaceSignaturePolicyInstance
- Returns:
- array de bytes da política
-
getEncodedHash
- Specified by:
getEncodedHash
in interfaceSignaturePolicyInstance
- Throws:
NoSuchAlgorithmException
-
isFound
public boolean isFound()Description copied from interface:SignaturePolicyInstance
Informa se a política está corretamente definida- Specified by:
isFound
in interfaceSignaturePolicyInstance
- Returns:
- se a política está corretamente definida
-
isXML
public boolean isXML()Description copied from interface:SignaturePolicyInstance
Verifica se a Política de Assinatura é XML- Specified by:
isXML
in interfaceSignaturePolicyInstance
- Returns:
- Indica se a Política de Assinatura é XML
-
validateHash
public boolean validateHash()Description copied from interface:SignaturePolicyInstance
verifica o resumo criptográfico do SignPolicyInfo da política- Specified by:
validateHash
in interfaceSignaturePolicyInstance
- Returns:
- verdadeiro se o resumo criptográfico ser o esperado
-
getSignaturePolicyType
- Specified by:
getSignaturePolicyType
in interfaceSignaturePolicyInstance
-