Class PadesAttributeIncluder
java.lang.Object
br.ufsc.labsec.signature.AttributeIncluder<PadesInformation, Object, PadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.pades.PadesAttributeIncluder
public class PadesAttributeIncluder
extends AttributeIncluder<PadesInformation, Object, PadesSignature>
-
Nested Class Summary
Nested classes/interfaces inherited from class AttributeIncluder
AttributeIncluder.AttributesReplacementRules, AttributeIncluder.ReplacementRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]extendSignature(PadesSignature signature, SignatureContainer<PadesSignature> container, Profile.AdESLevel level) Adiciona os atributos não assinados que estão faltando na assinatura para ela atingir determinado perfilprotected AttributeFactory<PadesInformation, Object, PadesSignature> protected PadesInformationprotected KeyStoreInformationgetKeyStoreInformation(PadesSignature signature) protected Stringbyte[]stampSignature(PadesSignature signature, SignatureContainer<PadesSignature> container, String attribute) protected SignatureContainer<PadesSignature> wrapperToContainer(SignatureWrapper wrapper)
-
Constructor Details
-
PadesAttributeIncluder
-
-
Method Details
-
extendSignature
public byte[] extendSignature(PadesSignature signature, SignatureContainer<PadesSignature> container, Profile.AdESLevel level) throws PbadException, IOException Description copied from class:AttributeIncluderAdiciona os atributos não assinados que estão faltando na assinatura para ela atingir determinado perfil- Overrides:
extendSignaturein classAttributeIncluder<PadesInformation, Object, PadesSignature>- Parameters:
signature- a assinaturacontainer- o contêiner da assinaturalevel- o nível do perfil desejado- Throws:
PbadException- caso ocorra algum erro ao adicionar os atributosIOException
-
stampSignature
public byte[] stampSignature(PadesSignature signature, SignatureContainer<PadesSignature> container, String attribute) throws PbadException, IOException - Overrides:
stampSignaturein classAttributeIncluder<PadesInformation, Object, PadesSignature>- Throws:
PbadExceptionIOException
-
wrapperToContainer
protected SignatureContainer<PadesSignature> wrapperToContainer(SignatureWrapper wrapper) throws PbadException - Specified by:
wrapperToContainerin classAttributeIncluder<PadesInformation, Object, PadesSignature>- Throws:
PbadException
-
getValidTimeStampAttribute
- Specified by:
getValidTimeStampAttributein classAttributeIncluder<PadesInformation, Object, PadesSignature>
-
getKeyStoreInformation
- Specified by:
getKeyStoreInformationin classAttributeIncluder<PadesInformation, Object, PadesSignature>
-
getExtraInformation
- Specified by:
getExtraInformationin classAttributeIncluder<PadesInformation, Object, PadesSignature>
-
getAttributeFactory
- Specified by:
getAttributeFactoryin classAttributeIncluder<PadesInformation, Object, PadesSignature>
-
getReplacementRules
- Specified by:
getReplacementRulesin classAttributeIncluder<PadesInformation, Object, PadesSignature>
-