Class CounterSignatureGenerator
java.lang.Object
br.ufsc.labsec.signature.signer.CompleteContainerGenerator<XadesInformation,Element,XadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.xades.XadesContainerGenerator
br.ufsc.labsec.signature.conformanceVerifier.xades.CounterSignatureGenerator
- All Implemented Interfaces:
ContainerGenerator<XadesInformation,XadesSignature>
public class CounterSignatureGenerator extends XadesContainerGenerator
Esta classe adiciona uma contra-assinatura XAdES.
Estende
XadesContainerGenerator
.-
Constructor Summary
Constructors Constructor Description CounterSignatureGenerator(SignaturePolicyIdentifier signaturePolicyIdentifier, XadesSignatureComponent xadesSignature)
Construtor -
Method Summary
Modifier and Type Method Description GenericXadesSignature
counterSign()
Gera a contra assinaturaMethods inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.XadesContainerGenerator
digestMethodFromSuite, generateBogusKeyPair, generateNewId, generateSignature, getFactory, getQualifyingPropertiesObject, getSignatureContext, getSignatureId, getSignedAttributeId, getXmlSignature, signatureMethodFromSuite
Methods inherited from class br.ufsc.labsec.signature.signer.CompleteContainerGenerator
generate
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.signer.ContainerGenerator
in, notIn
-
Constructor Details
-
CounterSignatureGenerator
public CounterSignatureGenerator(SignaturePolicyIdentifier signaturePolicyIdentifier, XadesSignatureComponent xadesSignature)Construtor- Parameters:
signaturePolicyIdentifier
- O identificador da política de assinatura a ser utilizadaxadesSignature
- Componente de assinatura XAdES
-
-
Method Details
-
counterSign
Gera a contra assinatura- Returns:
SignatureContainer
que contém a assinatura gerada- Throws:
PbadException
- exceção em caso de erro durante a geração da assinaturaInvalidKeyException
-