Class RsaSsaPssSignJce

  • All Implemented Interfaces:
    PublicKeySign

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

      • RsaSsaPssSignJce

        public RsaSsaPssSignJce​(java.security.interfaces.RSAPrivateCrtKey priv,
                                Enums.HashType sigHash,
                                Enums.HashType mgf1Hash,
                                int saltLength)
                         throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • create

        public static PublicKeySign create​(RsaSsaPssPrivateKey key)
                                    throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • sign

        public byte[] sign​(byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeySign
        Computes the signature for data.
        Specified by:
        sign in interface PublicKeySign
        Returns:
        the signature of data
        Throws:
        java.security.GeneralSecurityException