throw new SecurityException();
}
try {
Properties props = ResourceUtils.loadProperties(propLoc, m.getExchange().getBus());
PrivateKey pk = CryptoUtils.loadPrivateKey(m, props, CryptoUtils.RSSEC_SIG_KEY_PSWD_PROVIDER);
PrivateKeyJwsSignatureProvider provider = new PrivateKeyJwsSignatureProvider(pk);
provider.setDefaultJwtAlgorithm(props.getProperty(JSON_WEB_SIGNATURE_ALGO_PROP));
return provider;
} catch (SecurityException ex) {
throw ex;
} catch (Exception ex) {
throw new SecurityException(ex);