Class RsaSsaPssVerifyJce

  • All Implemented Interfaces:
    PublicKeyVerify

    @Immutable
    public final class RsaSsaPssVerifyJce
    extends java.lang.Object
    implements PublicKeyVerify
    RsaSsaPss (i.e. RSA Signature Schemes with Appendix (SSA) using PSS encoding) verifying with JCE.
    • Constructor Detail

      • RsaSsaPssVerifyJce

        public RsaSsaPssVerifyJce​(java.security.interfaces.RSAPublicKey pubKey,
                                  Enums.HashType sigHash,
                                  Enums.HashType mgf1Hash,
                                  int saltLength)
                           throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • create

        public static PublicKeyVerify create​(RsaSsaPssPublicKey key)
                                      throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • 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