private char[] getSigningKeyPassphrase(char[] signingKeyPassphrase) throws AliasServiceException { if(signingKeyPassphrase != null) { return signingKeyPassphrase; } char[] phrase = as.getPasswordFromAliasForGateway(SIGNING_KEY_PASSPHRASE); if (phrase == null) { phrase = as.getGatewayIdentityPassphrase(); } return phrase; }
private char[] getSigningKeyPassphrase(char[] signingKeyPassphrase) throws AliasServiceException { if(signingKeyPassphrase != null) { return signingKeyPassphrase; } char[] phrase = as.getPasswordFromAliasForGateway(SIGNING_KEY_PASSPHRASE); if (phrase == null) { phrase = as.getGatewayIdentityPassphrase(); } return phrase; }
if (aliasService != null) { try { credential = aliasService.getPasswordFromAliasForGateway(config.getCredentialAlias()); } catch (AliasServiceException e) { log.unresolvedCredentialAlias(config.getCredentialAlias());
if (aliasService != null) { try { char[] defaultUser = aliasService.getPasswordFromAliasForGateway(DEFAULT_USER_ALIAS); if (defaultUser != null) { username = new String(defaultUser); char[] pwd = aliasService.getPasswordFromAliasForGateway(passwordAlias); if (pwd != null) { password = new String(pwd);
if (aliasService != null) { try { char[] defaultUser = aliasService.getPasswordFromAliasForGateway(DEFAULT_USER_ALIAS); if (defaultUser != null) { username = new String(defaultUser); char[] pwd = aliasService.getPasswordFromAliasForGateway(passwordAlias); if (pwd != null) { password = new String(pwd);
char[] truststorePwd = null; try { truststorePwd = as.getPasswordFromAliasForGateway(GATEWAY_TRUSTSTORE_PASSWORD); } catch (AliasServiceException e) {
char[] truststorePwd = null; try { truststorePwd = as.getPasswordFromAliasForGateway(GATEWAY_TRUSTSTORE_PASSWORD); } catch (AliasServiceException e) {
@Override public void init(GatewayConfig config, Map<String, String> options) throws ServiceLifecycleException { if (as == null || ks == null) { throw new ServiceLifecycleException("Alias or Keystore service is not set"); } signingKeyAlias = config.getSigningKeyAlias(); RSAPrivateKey key; char[] passphrase; try { passphrase = as.getPasswordFromAliasForGateway(SIGNING_KEY_PASSPHRASE); if (passphrase != null) { key = (RSAPrivateKey) ks.getSigningKey(getSigningKeyAlias(signingKeyAlias), passphrase); if (key == null) { throw new ServiceLifecycleException("Provisioned passphrase cannot be used to acquire signing key."); } } } catch (AliasServiceException | KeystoreServiceException e) { throw new ServiceLifecycleException("Provisioned signing key passphrase cannot be acquired.", e); } }
@Override public void init(GatewayConfig config, Map<String, String> options) throws ServiceLifecycleException { if (as == null || ks == null) { throw new ServiceLifecycleException("Alias or Keystore service is not set"); } signingKeyAlias = config.getSigningKeyAlias(); RSAPrivateKey key; char[] passphrase; try { passphrase = as.getPasswordFromAliasForGateway(SIGNING_KEY_PASSPHRASE); if (passphrase != null) { key = (RSAPrivateKey) ks.getSigningKey(getSigningKeyAlias(signingKeyAlias), passphrase); if (key == null) { throw new ServiceLifecycleException("Provisioned passphrase cannot be used to acquire signing key."); } } } catch (AliasServiceException | KeystoreServiceException e) { throw new ServiceLifecycleException("Provisioned signing key passphrase cannot be acquired.", e); } }