Last change
on this file since 507 was 507, checked in by George Lilly, 15 years ago |
NHIN gateway and adaptor for use on linux with VistA EHR and RPMS
|
File size:
1.0 KB
|
Rev | Line | |
---|
[507] | 1 | package xwss.saml;
|
---|
| 2 |
|
---|
| 3 | import java.util.Map;
|
---|
| 4 | import org.apache.commons.logging.Log;
|
---|
| 5 | import org.apache.commons.logging.LogFactory;
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * This class uses the keystore alias system properties as established in the
|
---|
| 9 | * domain.xml file to allow the configuration of the SAML Keystore policy
|
---|
| 10 | * statements.
|
---|
| 11 | */
|
---|
| 12 | public class KeyStoreServerAliasSelector implements com.sun.xml.wss.AliasSelector {
|
---|
| 13 |
|
---|
| 14 | private static Log log = LogFactory.getLog(KeyStoreServerAliasSelector.class);
|
---|
| 15 |
|
---|
| 16 | /**
|
---|
| 17 | * Implementation of com.sun.xml.wss.AliasSelector returns the value of the
|
---|
| 18 | * SERVER_KEY_ALIAS system property.
|
---|
| 19 | * @param map Currently unused
|
---|
| 20 | * @return The value of the SERVER_KEY_ALIAS system property.
|
---|
| 21 | */
|
---|
| 22 | public String select(Map map) {
|
---|
| 23 |
|
---|
| 24 | String retSelection = System.getProperty("SERVER_KEY_ALIAS");
|
---|
| 25 | if (retSelection == null) {
|
---|
| 26 | log.error("SERVER_KEY_ALIAS is not defined in domain.xml");
|
---|
| 27 | }
|
---|
| 28 | log.debug("TrustStoreAliasSelector selects: " + retSelection);
|
---|
| 29 | return retSelection;
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.