Omaha #3255 Fixing dependencies to fix the DPA
Change-Id: If2625cda7b73b52b6e79f3a6b8ac580dbcf1ecc9 Former-commit-id: 075bb856689e8eaa95ee7721b6270c3a785c9bd4
This commit is contained in:
parent
39a4735758
commit
81997a24cc
8 changed files with 68 additions and 50 deletions
|
@ -19,7 +19,7 @@
|
||||||
# further licensing information.
|
# further licensing information.
|
||||||
##
|
##
|
||||||
|
|
||||||
export MAX_MEM=1536 # in Meg
|
export MAX_MEM=2048 # in Meg
|
||||||
export MAX_PERM_SIZE=192m
|
export MAX_PERM_SIZE=192m
|
||||||
export EDEX_DEBUG_PORT=5011
|
export EDEX_DEBUG_PORT=5011
|
||||||
export EDEX_JMX_PORT=1622
|
export EDEX_JMX_PORT=1622
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
<bean id="encryption" class="com.raytheon.uf.common.security.encryption.AESEncryptor"/>
|
|
||||||
|
|
||||||
<bean id="edexRegistryManagerFactory"
|
<bean id="edexRegistryManagerFactory"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.util.EDEXRegistryManagerFactory">
|
class="com.raytheon.uf.edex.registry.ebxml.util.EDEXRegistryManagerFactory">
|
||||||
<property name="queryManager" ref="queryServiceImpl" />
|
<property name="queryManager" ref="queryServiceImpl" />
|
||||||
|
@ -40,25 +38,6 @@
|
||||||
<constructor-arg ref="slotTypeDao"/>
|
<constructor-arg ref="slotTypeDao"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="objectReferenceResolver" class="com.raytheon.uf.edex.registry.ebxml.services.lifecycle.ObjectReferenceResolver">
|
|
||||||
<property name="registryObjectDao" ref="registryObjectDao"/>
|
|
||||||
<property name="dynamicRefDao" ref="dynamicObjectRefDao"/>
|
|
||||||
<property name="queryManager" ref="queryServiceImpl"/>
|
|
||||||
<property name="registryRestClient" ref="registryRestClient"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="registryXpathProcessor" class="com.raytheon.uf.edex.registry.ebxml.util.xpath.RegistryXPathProcessor">
|
|
||||||
<constructor-arg ref="registryJaxbManager"/>
|
|
||||||
<constructor-arg ref="registryNamespaceMapper"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="registryJaxbManager" class="com.raytheon.uf.common.registry.RegistryJaxbManager">
|
|
||||||
<constructor-arg ref="registryNamespaceMapper"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="registryNamespaceMapper" class="com.raytheon.uf.common.registry.RegistryNamespaceMapper"/>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Util to get the IDS of the Registry server nodes -->
|
<!-- Util to get the IDS of the Registry server nodes -->
|
||||||
<bean id="registryIdUtil"
|
<bean id="registryIdUtil"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.util.RegistryIdUtil">
|
class="com.raytheon.uf.edex.registry.ebxml.util.RegistryIdUtil">
|
||||||
|
|
|
@ -3,9 +3,12 @@
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="registryPasswordCallback" class="com.raytheon.uf.edex.registry.ebxml.acp.PasswordCallback">
|
||||||
|
<property name="credentialCache" ref="credentialCache"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="credentialCache"
|
<bean id="credentialCache"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.web.security.CredentialCache"
|
class="com.raytheon.uf.edex.registry.ebxml.web.security.CredentialCache">
|
||||||
factory-method="getInstance">
|
|
||||||
<property name="restServices" ref="registryRestClient" />
|
<property name="restServices" ref="registryRestClient" />
|
||||||
<property name="personDao" ref="personDao" />
|
<property name="personDao" ref="personDao" />
|
||||||
<property name="txTemplate" ref="metadataTxTemplate" />
|
<property name="txTemplate" ref="metadataTxTemplate" />
|
||||||
|
@ -18,6 +21,7 @@
|
||||||
<property name="serviceConfig" ref="RegistryServiceConfig" />
|
<property name="serviceConfig" ref="RegistryServiceConfig" />
|
||||||
<property name="securityConfig" ref="securityConfiguration" />
|
<property name="securityConfig" ref="securityConfiguration" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="registryWebServiceClient"
|
<bean id="registryWebServiceClient"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.services.soap.RegistrySOAPServices">
|
class="com.raytheon.uf.edex.registry.ebxml.services.soap.RegistrySOAPServices">
|
||||||
<property name="securityInterceptor" ref="securityOutInterceptor" />
|
<property name="securityInterceptor" ref="securityOutInterceptor" />
|
||||||
|
@ -31,11 +35,6 @@
|
||||||
<bean id="webServiceInInterceptor"
|
<bean id="webServiceInInterceptor"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.services.RegistryServiceInInterceptor" />
|
class="com.raytheon.uf.edex.registry.ebxml.services.RegistryServiceInInterceptor" />
|
||||||
|
|
||||||
<bean id="xacmlInterceptor" class="com.raytheon.uf.edex.registry.acp.xacml.XACMLInterceptor">
|
|
||||||
<constructor-arg ref="XACMLPolicyAdministrator"/>
|
|
||||||
<constructor-arg ref="XACMLPolicyDecisionPoint"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="authenticationInterceptor" class="org.apache.cxf.interceptor.security.JAASLoginInterceptor">
|
<bean id="authenticationInterceptor" class="org.apache.cxf.interceptor.security.JAASLoginInterceptor">
|
||||||
<property name="contextName" value="RegistryRealm"/>
|
<property name="contextName" value="RegistryRealm"/>
|
||||||
|
|
||||||
|
@ -52,8 +51,9 @@
|
||||||
<entry key="user" value="${edex.security.keystore.alias}" />
|
<entry key="user" value="${edex.security.keystore.alias}" />
|
||||||
<entry key="signaturePropRefId" value="propRef"/>
|
<entry key="signaturePropRefId" value="propRef"/>
|
||||||
<entry key="propRef" value-ref="encryptedPropertyLoader"/>
|
<entry key="propRef" value-ref="encryptedPropertyLoader"/>
|
||||||
<entry key="passwordCallbackClass"
|
<entry key="passwordCallbackRef">
|
||||||
value="com.raytheon.uf.edex.registry.ebxml.acp.PasswordCallback" />
|
<ref bean="registryPasswordCallback"/>
|
||||||
|
</entry>
|
||||||
<entry key="signatureParts"
|
<entry key="signatureParts"
|
||||||
value="{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body" />
|
value="{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body" />
|
||||||
<entry key="signatureAlgorithm" value="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
|
<entry key="signatureAlgorithm" value="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
|
||||||
|
@ -61,6 +61,24 @@
|
||||||
</constructor-arg>
|
</constructor-arg>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="registryJaxbManager" class="com.raytheon.uf.common.registry.RegistryJaxbManager">
|
||||||
|
<constructor-arg ref="registryNamespaceMapper"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="registryNamespaceMapper" class="com.raytheon.uf.common.registry.RegistryNamespaceMapper"/>
|
||||||
|
|
||||||
|
<bean id="objectReferenceResolver" class="com.raytheon.uf.edex.registry.ebxml.services.lifecycle.ObjectReferenceResolver">
|
||||||
|
<property name="registryObjectDao" ref="registryObjectDao"/>
|
||||||
|
<property name="dynamicRefDao" ref="dynamicObjectRefDao"/>
|
||||||
|
<property name="queryManager" ref="queryServiceImpl"/>
|
||||||
|
<property name="registryRestClient" ref="registryRestClient"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="registryXpathProcessor" class="com.raytheon.uf.edex.registry.ebxml.util.xpath.RegistryXPathProcessor">
|
||||||
|
<constructor-arg ref="registryJaxbManager"/>
|
||||||
|
<constructor-arg ref="registryNamespaceMapper"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<!-- QUERY -->
|
<!-- QUERY -->
|
||||||
<bean id="queryServiceImpl"
|
<bean id="queryServiceImpl"
|
||||||
class="com.raytheon.uf.edex.registry.ebxml.services.query.QueryManagerImpl">
|
class="com.raytheon.uf.edex.registry.ebxml.services.query.QueryManagerImpl">
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="xacmlInterceptor" class="com.raytheon.uf.edex.registry.acp.xacml.XACMLInterceptor">
|
||||||
|
<constructor-arg ref="XACMLPolicyAdministrator"/>
|
||||||
|
<constructor-arg ref="XACMLPolicyDecisionPoint"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="XACMLPolicyDecisionPoint" class="com.raytheon.uf.edex.registry.acp.xacml.XACMLPolicyDecisionPoint"/>
|
<bean id="XACMLPolicyDecisionPoint" class="com.raytheon.uf.edex.registry.acp.xacml.XACMLPolicyDecisionPoint"/>
|
||||||
|
|
||||||
<bean id="XACMLContextHandler"
|
<bean id="XACMLContextHandler"
|
||||||
|
|
|
@ -42,6 +42,7 @@ import com.raytheon.uf.edex.registry.ebxml.web.security.CredentialCache;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Aug 3, 2012 bphillip Initial creation
|
* Aug 3, 2012 bphillip Initial creation
|
||||||
* 7/10/2014 1717 bphillip Get user information from CredentialCache
|
* 7/10/2014 1717 bphillip Get user information from CredentialCache
|
||||||
|
* 7/24/2014 1712 bphillip Spring injection of CredentialCache
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -50,6 +51,9 @@ import com.raytheon.uf.edex.registry.ebxml.web.security.CredentialCache;
|
||||||
*/
|
*/
|
||||||
public class PasswordCallback implements CallbackHandler {
|
public class PasswordCallback implements CallbackHandler {
|
||||||
|
|
||||||
|
/** Cache of user credentials */
|
||||||
|
private CredentialCache credentialCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new PasswordCallback
|
* Creates a new PasswordCallback
|
||||||
*/
|
*/
|
||||||
|
@ -62,9 +66,18 @@ public class PasswordCallback implements CallbackHandler {
|
||||||
for (Callback call : callbacks) {
|
for (Callback call : callbacks) {
|
||||||
if (call instanceof WSPasswordCallback) {
|
if (call instanceof WSPasswordCallback) {
|
||||||
WSPasswordCallback cb = (WSPasswordCallback) call;
|
WSPasswordCallback cb = (WSPasswordCallback) call;
|
||||||
cb.setPassword(CredentialCache.getInstance().getUserPassword(
|
cb.setPassword(credentialCache.getUserPassword(
|
||||||
((WSPasswordCallback) call).getIdentifier()));
|
((WSPasswordCallback) call).getIdentifier()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param credentialCache the credentialCache to set
|
||||||
|
*/
|
||||||
|
public void setCredentialCache(CredentialCache credentialCache) {
|
||||||
|
this.credentialCache = credentialCache;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@ import com.raytheon.uf.edex.security.SecurityConfiguration;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* 7/10/2014 1717 bphillip Initial creation
|
* 7/10/2014 1717 bphillip Initial creation
|
||||||
|
* 7/24/2014 1712 bphillip No longer singleton
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author bphillip
|
* @author bphillip
|
||||||
|
@ -67,9 +68,6 @@ import com.raytheon.uf.edex.security.SecurityConfiguration;
|
||||||
**/
|
**/
|
||||||
public class CredentialCache {
|
public class CredentialCache {
|
||||||
|
|
||||||
/** The singleton instance */
|
|
||||||
private static CredentialCache instance = new CredentialCache();
|
|
||||||
|
|
||||||
/** The registry REST services */
|
/** The registry REST services */
|
||||||
private RegistryRESTServices restServices;
|
private RegistryRESTServices restServices;
|
||||||
|
|
||||||
|
@ -175,15 +173,6 @@ public class CredentialCache {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the singleton instance of the Credential cache
|
|
||||||
*
|
|
||||||
* @return The singleton instance
|
|
||||||
*/
|
|
||||||
public static CredentialCache getInstance() {
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listens for updates to users and invalidates their entries in the cache
|
* Listens for updates to users and invalidates their entries in the cache
|
||||||
* if they have changed
|
* if they have changed
|
||||||
|
|
|
@ -30,10 +30,12 @@ import org.eclipse.jetty.util.security.Credential;
|
||||||
import org.eclipse.jetty.util.security.Password;
|
import org.eclipse.jetty.util.security.Password;
|
||||||
|
|
||||||
import com.raytheon.uf.common.registry.services.RegistryServiceException;
|
import com.raytheon.uf.common.registry.services.RegistryServiceException;
|
||||||
|
import com.raytheon.uf.edex.core.EDEXUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* The registry login module used by the Jetty server hosting the registry services
|
* The registry login module used by the Jetty server hosting the registry
|
||||||
|
* services
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -42,6 +44,7 @@ import com.raytheon.uf.common.registry.services.RegistryServiceException;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* 7/10/2014 1717 bphillip Initial creation
|
* 7/10/2014 1717 bphillip Initial creation
|
||||||
|
* 7/24/2014 1712 bphillip Spring injection of CredentialCache
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author bphillip
|
* @author bphillip
|
||||||
|
@ -49,24 +52,33 @@ import com.raytheon.uf.common.registry.services.RegistryServiceException;
|
||||||
**/
|
**/
|
||||||
public class RegistryLoginModule extends AbstractLoginModule {
|
public class RegistryLoginModule extends AbstractLoginModule {
|
||||||
|
|
||||||
|
/** Cache of user credentials */
|
||||||
|
private CredentialCache credentialCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new RegistryLoginModule
|
* Creates a new RegistryLoginModule
|
||||||
*/
|
*/
|
||||||
public RegistryLoginModule() {
|
public RegistryLoginModule() {
|
||||||
super();
|
super();
|
||||||
|
/*
|
||||||
|
* This class is instantiated via reflection by the Jetty server. Therefore
|
||||||
|
* direct spring injection is not possible
|
||||||
|
*/
|
||||||
|
this.credentialCache = (CredentialCache) EDEXUtil
|
||||||
|
.getESBComponent("credentialCache");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserInfo getUserInfo(final String userName) {
|
public UserInfo getUserInfo(final String userName) {
|
||||||
String[] user = null;
|
String[] user = null;
|
||||||
try {
|
try {
|
||||||
user = CredentialCache.getInstance().getUser(userName);
|
user = credentialCache.getUser(userName);
|
||||||
} catch (RegistryServiceException e) {
|
} catch (RegistryServiceException e) {
|
||||||
throw new WebServiceException("User [" + userName
|
throw new WebServiceException("User [" + userName
|
||||||
+ " Not authorized!",e);
|
+ " Not authorized!", e);
|
||||||
}
|
}
|
||||||
for(String userField:user){
|
for (String userField : user) {
|
||||||
if(userField == null){
|
if (userField == null) {
|
||||||
throw new WebServiceException("User [" + userName
|
throw new WebServiceException("User [" + userName
|
||||||
+ " Not authorized!");
|
+ " Not authorized!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="encryption" class="com.raytheon.uf.common.security.encryption.AESEncryptor"/>
|
||||||
|
|
||||||
<bean id="securityConfiguration" class="com.raytheon.uf.edex.security.SecurityConfiguration" />
|
<bean id="securityConfiguration" class="com.raytheon.uf.edex.security.SecurityConfiguration" />
|
||||||
|
|
||||||
<bean id="encryptedPropertyLoader" class="com.raytheon.uf.edex.security.EncryptedProperties">
|
<bean id="encryptedPropertyLoader" class="com.raytheon.uf.edex.security.EncryptedProperties">
|
||||||
|
|
Loading…
Add table
Reference in a new issue