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
-
Field Summary
Fields inherited from class CadesSignatureInformation
isDetached, signerInformation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCadesSimpleSignatureInformation(org.bouncycastle.cms.SignerInformation signerInformation, boolean isDetached, CmsParent parent) -
Method Summary
Modifier and TypeMethodDescriptionbooleanverify(X509Certificate signerCertificate, SignatureReport sigReport, List<PbadException> exceptions, boolean isIcpBr) Verifica a integridade da assinaturabooleanverifyIntegrity(SignatureReport sigReport, X509Certificate signerCertificate) Methods inherited from class CadesSignatureInformation
addCounterSignature, addUnsignedAttribute, buildSignerIdentifier, equals, 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, hashCode, 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 VerificationException Description copied from class:CadesSignatureInformationVerifica a integridade da assinatura- Specified by:
verifyin interfaceGenericCadesSignature- Overrides:
verifyin 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
-
getAlgorithmOid
-