Created the ATS daemon and made necessary RPM install changes to allow
for its deployment.
This commit is contained in:
@@ -53,13 +53,15 @@ public class SvcConfig
|
||||
public final static String ConfigFolderPath = "ConfigFolderPath";
|
||||
public final static String AppRootPath = "AppRootPath";
|
||||
public final static String ReconfigureInterval = "ReconfigureInterval";
|
||||
public final static String KeyStoreUser = "KeyStoreUser";
|
||||
public final static String KeyStorePwd = "KeyStorePwd";
|
||||
public final static String SigningKeyAliasName = "SigningKeyAliasName";
|
||||
public final static String SigningKeyPassword = "SigningKeyPassword";
|
||||
|
||||
// Default configuration values
|
||||
public final static String DefaultSessionTokenLifetimeValue = "43200"; // Seconds
|
||||
public final static String DefaultLifetimeShorterValue = "5"; // Seconds
|
||||
public final static String DefaultReconfigureIntervalValue = "60"; // Seconds
|
||||
public final static String DefaultSessionTokenLifetimeValue = "43200"; // Seconds
|
||||
public final static String DefaultLifetimeShorterValue = "5"; // Seconds
|
||||
public final static String DefaultReconfigureIntervalValue = "60"; // Seconds
|
||||
public final static String DefaultSigningKeyAliasNameValue = "signingKey";
|
||||
public final static String DefaultSigningKeyPasswordValue = "secret";
|
||||
|
||||
private static final String m_svcSettingsFileName = "svc.settings";
|
||||
private Map m_svcSettingsMap;
|
||||
@@ -281,6 +283,22 @@ public class SvcConfig
|
||||
// Add the key to the map so that it can be found quicker next time
|
||||
m_svcSettingsMap.put(ReconfigureInterval, DefaultReconfigureIntervalValue);
|
||||
}
|
||||
else if (settingName.equals(SigningKeyAliasName) == true)
|
||||
{
|
||||
value = DefaultSigningKeyAliasNameValue;
|
||||
System.err.println("SvcConfig.getSetting()- Assigning default value " + value);
|
||||
|
||||
// Add the key to the map so that it can be found quicker next time
|
||||
m_svcSettingsMap.put(SigningKeyAliasName, DefaultSigningKeyAliasNameValue);
|
||||
}
|
||||
else if (settingName.equals(SigningKeyPassword) == true)
|
||||
{
|
||||
value = DefaultSigningKeyPasswordValue;
|
||||
System.err.println("SvcConfig.getSetting()- Assigning default value " + value);
|
||||
|
||||
// Add the key to the map so that it can be found quicker next time
|
||||
m_svcSettingsMap.put(SigningKeyPassword, DefaultSigningKeyPasswordValue);
|
||||
}
|
||||
else if (settingName.equals(IdentityAbstractionConfigFile) == true)
|
||||
{
|
||||
System.err.println("SvcConfig.getSetting()- Mandatory setting " + IdentityAbstractionConfigFile + " not set");
|
||||
|
||||
@@ -244,8 +244,8 @@ public class WSSecurity
|
||||
boolean includeCert) throws Exception
|
||||
{
|
||||
WSSecSignature signer = new WSSecSignature();
|
||||
signer.setUserInfo(svcConfig.getSetting(SvcConfig.KeyStoreUser),
|
||||
svcConfig.getSetting(SvcConfig.KeyStorePwd));
|
||||
signer.setUserInfo(svcConfig.getSetting(SvcConfig.SigningKeyAliasName),
|
||||
svcConfig.getSetting(SvcConfig.SigningKeyPassword));
|
||||
if (includeCert)
|
||||
{
|
||||
signer.setKeyIdentifierType(WSConstants.X509_KEY_IDENTIFIER); // Include X509 Cert in message
|
||||
|
||||
Reference in New Issue
Block a user