private Credential getSigningCredential()

in src/main/java/com/aws/sap/sample/lambda/sap/oauth/LocalSamlTokenFactory.java [95:104]


	private Credential getSigningCredential(Properties _cfg) throws IOException, KeyStoreException,
			NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, MissingPropertyException {
		if (this._signingCredential == null) { // check configuration
			Map<String, Object> keys = _keyStoreHandler.getKeys(_cfg);
			X509Certificate pubKey = (X509Certificate)keys.get(KeyStoreHandler.KS_PUBLIC_KEY);
			PrivateKey pk = (PrivateKey)keys.get(KeyStoreHandler.KS_PRIVATE_KEY);
			this._signingCredential = SecurityHelper.getSimpleCredential(pubKey.getPublicKey(), pk);
		}
		return this._signingCredential;
	}