Class RsaSsaPkcs1VerifyJce

  • All Implemented Interfaces:
    PublicKeyVerify

    @Immutable
    public final class RsaSsaPkcs1VerifyJce
    extends java.lang.Object
    implements PublicKeyVerify
    RsaSsaPkcs1 (i.e. RSA Signature Schemes with Appendix (SSA) using PKCS1-v1_5 encoding) verifying with JCE.
    • Constructor Detail

      • RsaSsaPkcs1VerifyJce

        public RsaSsaPkcs1VerifyJce​(java.security.interfaces.RSAPublicKey pubKey,
                                    Enums.HashType hash)
                             throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • verify

        public void verify​(byte[] signature,
                           byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeyVerify
        Verifies whether signature is a valid signature for data.
        Specified by:
        verify in interface PublicKeyVerify
        Throws:
        java.security.GeneralSecurityException - if signature is not a valid signature for data