Interface CMSSignedDataVerifier


  • @Role
    public interface CMSSignedDataVerifier
    Verify SignedData according to RFC 3852.
    Since:
    6.0M1
    Version:
    $Id: 0e01e41c656b9083b0f5e379b85dcd5f24b770ad $
    • 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,
                                     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.