Class CadesSimpleSignatureInformation
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.cades.CadesSignatureInformation
br.ufsc.labsec.signature.conformanceVerifier.cades.CadesSimpleSignatureInformation
- All Implemented Interfaces:
CmsParent<CadesSignature>
,GenericCadesSignature
,Signature<org.bouncycastle.asn1.cms.Attribute>
,SignatureObject
- Direct Known Subclasses:
CadesSignature
public class CadesSimpleSignatureInformation extends CadesSignatureInformation
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.cades.CadesSignatureInformation
isDetached, signerInformation
-
Constructor Summary
Constructors Modifier Constructor Description protected
CadesSimpleSignatureInformation(org.bouncycastle.cms.SignerInformation signerInformation, boolean isDetached, CmsParent parent)
-
Method Summary
Modifier and Type Method Description boolean
verify(X509Certificate signerCertificate, SignatureReport sigReport, List<PbadException> exceptions, boolean isIcpBr)
Verifica a integridade da assinaturaboolean
verifyIntegrity(SignatureReport sigReport, X509Certificate signerCertificate)
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.cades.CadesSignatureInformation
addCounterSignature, addUnsignedAttribute, buildSignerIdentifier, getArchiveTimeStampATSHashValue, getArchiveTimeStampHashValue, getArchiveTimeStampHashValue, getArchiveTimeStampHashValue, getAttributeList, getContainer, getContentToBeSigned, getCounterSignatures, getEncodedAttribute, getEncodedAttribute, getFormat, getMessageDigest, getMode, getSigAndRefsHashValue, getSignaturePolicyHashValue, getSignaturePolicyIdentifier, getSignaturePolicyUri, getSignatureValue, getSignatureValueHash, getSignedAttributeList, getSignedAttributes, getSignedContent, getSignedData, getSignerInformation, getSignerInformationVerifier, getUnsignedAttributeList, getUnsignedAttributes, isArchiveTimeStampHashValid, isArchiveTimeStampWithATSHashValueValid, isExternalSignedData, isSigAndRefsHashValid, isSignatureValueHashValid, removeUnsignedAttribute, replaceChildSignature, replaceSignerInformation, replaceUnsignedAttribute, setParent, toString
-
Constructor Details
-
CadesSimpleSignatureInformation
protected CadesSimpleSignatureInformation(org.bouncycastle.cms.SignerInformation signerInformation, boolean isDetached, CmsParent parent)
-
-
Method Details
-
verify
public boolean verify(X509Certificate signerCertificate, SignatureReport sigReport, List<PbadException> exceptions, boolean isIcpBr) throws VerificationExceptionDescription copied from class:CadesSignatureInformation
Verifica a integridade da assinatura- Specified by:
verify
in interfaceGenericCadesSignature
- Overrides:
verify
in classCadesSignatureInformation
- Parameters:
signerCertificate
- O certificado do assinantesigReport
- O relatório de verificação da assinaturaisIcpBr
- Se as assinaturas são ICP-BR- Returns:
- Indica se a assinatura é íntegra
- Throws:
VerificationException
- Exceção em caso de erro durante a validação
-
verifyIntegrity
public boolean verifyIntegrity(SignatureReport sigReport, X509Certificate signerCertificate) throws VerificationException- Throws:
VerificationException
-