Failing at new RSASSASigner(getPrivateKey()) on server but works in standalone program

Issue #247 invalid
Former user created an issue

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)

  1. sumankpattnaik

    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();

        return rsaKey;
    }//EndMethod
    
  2. Log in to comment