try {
PrivateKey pk = CryptoUtils.loadPrivateKey(JAXRSUtils.getCurrentMessage(),
RSSEC_ENCRYPTION_IN_PROPS,
RSSEC_ENCRYPTION_PROPS,
CryptoUtils.RSSEC_DECRYPT_KEY_PSWD_PROVIDER);
return new WrappedKeyJweDecryption(pk, cryptoProperties);
} catch (SecurityException ex) {
throw ex;
} catch (Exception ex) {
throw new SecurityException(ex);
}