source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/NhincSAMLCallbackLib/src/gov/hhs/fha/nhinc/callback/TrustStoreAliasSelector.java@ 507

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 
1package gov.hhs.fha.nhinc.callback;
2
3import java.util.Map;
4import org.apache.commons.logging.Log;
5import org.apache.commons.logging.LogFactory;
6
7/**
8 * This class uses the truststore alias system properties as established in the
9 * domain.xml file to allow the configuration of the SAML Truststore policy
10 * statements.
11 */
12public class TrustStoreAliasSelector implements com.sun.xml.wss.AliasSelector {
13
14 private static Log log = LogFactory.getLog(TrustStoreAliasSelector.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 definedt 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.