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
|
Line | |
---|
1 | package gov.hhs.fha.nhinc.callback;
|
---|
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 KeyStoreClientAliasSelector implements com.sun.xml.wss.AliasSelector {
|
---|
13 |
|
---|
14 | private static Log log = LogFactory.getLog(KeyStoreClientAliasSelector.class);
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Implementation of com.sun.xml.wss.AliasSelector returns the value of the
|
---|
18 | * CLIENT_KEY_ALIAS system property.
|
---|
19 | * @param map Currently unused
|
---|
20 | * @return The value of the CLIENT_KEY_ALIAS system property.
|
---|
21 | */
|
---|
22 | public String select(Map map) {
|
---|
23 |
|
---|
24 | String retSelection = System.getProperty("CLIENT_KEY_ALIAS");
|
---|
25 | if (retSelection == null) {
|
---|
26 | log.error("CLIENT_KEY_ALIAS is not defined in domain.xml");
|
---|
27 | }
|
---|
28 | log.debug("KeyStoreClientAliasSelector selects: " + retSelection);
|
---|
29 | return retSelection;
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.