Can anyone tell me how to generate a signature for RSASSA-PKCS1-v1.5 in Java?
RSASSA-PKCS1-v1.5
Actually, I want to know how I am with the class java.security.Signature .
java.security.Signature
Do I need to use any third party libraries?
Sun JCE supports PKCS # 1 signing. That's all you need to do,
Signature signer = Signature.getInstance("SHA1withRSA"); signer.initSign(privateKey); signer.update(message); byte[] signature = signer.sign();