private void addDefaultConfig(String clientNameParameter, Map<String, String> properties) { // add default saml params if (clientNameParameter.contains("SAML2Client")) { properties.put(PropertiesConfigFactory.SAML_KEYSTORE_PATH, keystoreService.getKeystorePath()); properties.put(PropertiesConfigFactory.SAML_KEYSTORE_PASSWORD, new String(masterService.getMasterSecret())); // check for provisioned alias for private key char[] gip = null; try { gip = aliasService.getGatewayIdentityPassphrase(); } catch(AliasServiceException ase) { log.noPrivateKeyPasshraseProvisioned(ase); } if (gip != null) { properties.put(PropertiesConfigFactory.SAML_PRIVATE_KEY_PASSWORD, new String(gip)); } else { // no alias provisioned then use the master properties.put(PropertiesConfigFactory.SAML_PRIVATE_KEY_PASSWORD, new String(masterService.getMasterSecret())); } } }
private void addDefaultConfig(String clientNameParameter, Map<String, String> properties) { // add default saml params if (clientNameParameter.contains("SAML2Client")) { properties.put(PropertiesConfigFactory.SAML_KEYSTORE_PATH, keystoreService.getKeystorePath()); properties.put(PropertiesConfigFactory.SAML_KEYSTORE_PASSWORD, new String(masterService.getMasterSecret())); // check for provisioned alias for private key char[] gip = null; try { gip = aliasService.getGatewayIdentityPassphrase(); } catch(AliasServiceException ase) { log.noPrivateKeyPasshraseProvisioned(ase); } if (gip != null) { properties.put(PropertiesConfigFactory.SAML_PRIVATE_KEY_PASSWORD, new String(gip)); } else { // no alias provisioned then use the master properties.put(PropertiesConfigFactory.SAML_PRIVATE_KEY_PASSWORD, new String(masterService.getMasterSecret())); } } }