Class Profile<Encod,Sig extends Signature<Encod>>
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.signaturePolicy.decoder.Profile<Encod,Sig>
- All Implemented Interfaces:
SignaturePolicyInstance
- Direct Known Subclasses:
CAdESBProfile
,CAdESLTAProfile
,CAdESLTProfile
,CAdESTProfile
,JAdESBProfile
,JAdESLTAProfile
,JAdESLTProfile
,JAdESTProfile
,PAdESProfileAbstract
,XAdESBES
,XAdESBProfile
,XAdESLTAProfile
,XAdESLTProfile
,XAdESTProfile
public abstract class Profile<Encod,Sig extends Signature<Encod>> extends Object implements SignaturePolicyInstance
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Profile.AdESLevel
static class
Profile.AdESType
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
conditionalSignedAttributeList
protected List<String>
conditionalUnsignedAttributeList
protected List<List<String>>
mandatedConditionalSignedAttributeList
protected List<String>
mandatedSignedAttributeList
protected List<String>
mandatedUnsignedAttributeList
protected List<String>
prohibitedSignedAttributeList
protected List<String>
prohibitedUnsignedAttributeList
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
Methods 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
getAdESType, getAlgorithmIdentifier, getEncoded, getEncodedHash, getExpectedSignPolicyInfoHash, getSignPolicyIdentifier, isFound, isNotFound, isXML, validateHash
-
Field Details
-
mandatedSignedAttributeList
-
mandatedUnsignedAttributeList
-
prohibitedUnsignedAttributeList
-
prohibitedSignedAttributeList
-
mandatedConditionalSignedAttributeList
-
conditionalSignedAttributeList
-
conditionalUnsignedAttributeList
-
-
Constructor Details
-
Profile
public Profile()
-
-
Method Details
-
getSignaturePolicyType
- Specified by:
getSignaturePolicyType
in interfaceSignaturePolicyInstance
-
isAtLeast
-
validate
-
validateMandatoryConditionals
-
validateMandatoryConditionalsLocal
public org.apache.commons.lang3.tuple.Pair<Boolean,List<String>> validateMandatoryConditionalsLocal(Signature<Encod> signature, List<String> attrList)Valida os atributos condicionais obrigatorios para os perfis- Parameters:
signature
- assinatura a ter seus parametros verificadosattrList
- lista de atributos que passarão pelo teste para verificação- Returns:
- Um mapa de 1 parametro com a key sendo o resultado da verificação e o value sendo a lista de atributos a serem adicionados
-
addMandatoryConditionals
adiciona os parametros como atributos obrigatorios do perfil- Parameters:
attrList
- lista de atributos a ser adicionado
-
getMandatedUnsignedAttrs
-
getMandatedSignedAttrs
-
getProhibitedUnsignedAttrs
-
getProhibitedSignedAttrs
-
getMandatedConditionalSignedAttributeList
-
getMandatedUnsignedAttributeList
-
getSignaturePolicyName
- Specified by:
getSignaturePolicyName
in interfaceSignaturePolicyInstance
-
getNormativeReference
-
getAdESLevel
Description copied from interface:SignaturePolicyInstance
Retorna o tipo do perfil- Specified by:
getAdESLevel
in interfaceSignaturePolicyInstance
- Returns:
- tipo do perfil
-
loadAttributes
-
getAdES
-
getSignatureValidationPolicy
Retorna a política de validação.- Specified by:
getSignatureValidationPolicy
in interfaceSignaturePolicyInstance
- Returns:
- política de validação
-
getIdentifier
-
getWarningAttributeList
Método que retorna a lista de atributos que geram warnings- Returns:
- lista de atributos que geram warnings
-
isInstanceOf
-