Class RsaSsaPkcs1SignJce

  • All Implemented Interfaces:
    PublicKeySign

    @Immutable
    public final class RsaSsaPkcs1SignJce
    extends java.lang.Object
    implements PublicKeySign
    RsaSsaPkcs1 (i.e. RSA Signature Schemes with Appendix (SSA) with PKCS1-v1_5 encoding) signing with JCE.
    • Method Detail

      • createWithProvider

        public static PublicKeySign createWithProvider​(RsaSsaPkcs1PrivateKey key,
                                                       java.security.Provider provider)
                                                throws java.security.GeneralSecurityException
        Creates a PublicKeySign using a Provider. The provider should be either the Conscrypt or the OpenJDK provider.
        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