Package org.xwiki.crypto.signer
Interface CMSSignedDataVerifier
-
@Role public interface CMSSignedDataVerifier
Verify SignedData according to RFC 3852.- Since:
- 6.0M1
- Version:
- $Id: 0e01e41c656b9083b0f5e379b85dcd5f24b770ad $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CMSSignedDataVerified
verify(byte[] signature)
Verify all signature contained in the signature against the embedded data.CMSSignedDataVerified
verify(byte[] signature, byte[] data)
Verify all signature contained in the signature against the provided data.CMSSignedDataVerified
verify(byte[] signature, byte[] data, Collection<CertifiedPublicKey> certificates)
Verify all signature contained in the signature against the provided data.CMSSignedDataVerified
verify(byte[] signature, byte[] data, CertificateProvider certificateProvider)
Verify all signature contained in the signature against the provided data.CMSSignedDataVerified
verify(byte[] signature, Collection<CertifiedPublicKey> certificates)
Verify all signature contained in the signature against the embedded data.CMSSignedDataVerified
verify(byte[] signature, CertificateProvider certificateProvider)
Verify all signature contained in the signature against the embedded data.
-
-
-
Method Detail
-
verify
CMSSignedDataVerified verify(byte[] signature) throws GeneralSecurityException
Verify all signature contained in the signature against the embedded data.- Parameters:
signature
- the encoded signature to verify.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
verify
CMSSignedDataVerified verify(byte[] signature, Collection<CertifiedPublicKey> certificates) throws GeneralSecurityException
Verify all signature contained in the signature against the embedded data.- Parameters:
signature
- the encoded signature to verify.certificates
- additional certificates to proceed to the verification.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
verify
CMSSignedDataVerified verify(byte[] signature, CertificateProvider certificateProvider) throws GeneralSecurityException
Verify all signature contained in the signature against the embedded data.- Parameters:
signature
- the encoded signature to verify.certificateProvider
- provider of additional certificate to proceed to the verification.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
verify
CMSSignedDataVerified verify(byte[] signature, byte[] data) throws GeneralSecurityException
Verify all signature contained in the signature against the provided data.- Parameters:
signature
- the encoded signature to verify.data
- the data to check the signature against.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
verify
CMSSignedDataVerified verify(byte[] signature, byte[] data, Collection<CertifiedPublicKey> certificates) throws GeneralSecurityException
Verify all signature contained in the signature against the provided data.- Parameters:
signature
- the encoded signature to verify.data
- the data to check the signature against.certificates
- additional certificates to proceed to the verification.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
verify
CMSSignedDataVerified verify(byte[] signature, byte[] data, CertificateProvider certificateProvider) throws GeneralSecurityException
Verify all signature contained in the signature against the provided data.- Parameters:
signature
- the encoded signature to verify.data
- the data to check the signature against.certificateProvider
- provider of additional certificate to proceed to the verification.- Returns:
- the result of that verification, and information contained in the signed data.
- Throws:
GeneralSecurityException
- on error.
-
-