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.
    • Constructor Detail

      • RsaSsaPkcs1SignJce

        public RsaSsaPkcs1SignJce​(java.security.interfaces.RSAPrivateCrtKey privateKey,
                                  Enums.HashType hash)
                           throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • 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