Failing at new RSASSASigner(getPrivateKey()) on server but works in standalone program
Issue #247
invalid
Failing at new RSASSASigner(getPrivateKey()) on server but works in standalone program
it just come out when creating RSASSASigner object. But it works with standalone java program.
I doubt it is something with System.getSecurityManager(); Please let me know
Comments (3)
-
-
- changed component to Crypto package
-
- changed status to invalid
Yes, casting to the expected class is required.
- Log in to comment
This is working after I tried with RSAKey. Thanks
JWSSigner signer = new RSASSASigner(getRSAKey());
//////////////////////////////////////////////// /* * Get RSA Key * @return * @throws Exception / public static RSAKey getRSAKey() throws Exception{ RSAKey rsaKey = new RSAKey .Builder((RSAPublicKey)getPublicKey()) .privateKey((RSAPrivateKey) getPrivateKey()) .build();