From jbossws-commits at lists.jboss.org Wed Dec 18 03:55:59 2013
Content-Type: multipart/mixed; boundary="===============7361610837232690479=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r18201 - in
stack/cxf/branches/jaspi/modules:
server/src/main/java/org/jboss/wsf/stack/cxf/jaspi/config and 4 other
directories.
Date: Wed, 18 Dec 2013 03:55:59 -0500
Message-ID: <201312180855.rBI8txBn028256@svn01.web.mwc.hst.phx2.redhat.com>
--===============7361610837232690479==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jim.ma
Date: 2013-12-18 03:55:58 -0500 (Wed, 18 Dec 2013)
New Revision: 18201
Added:
stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/resources/=
jaxws/samples/wsse/policy/jaspi/WEB-INF/jaxws-endpoint-config.xml
Removed:
stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/stac=
k/cxf/jaspi/interceptor/
Modified:
stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/stac=
k/cxf/jaspi/config/JBossWSAuthConfigProvider.java
stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/stac=
k/cxf/jaspi/config/JBossWSAuthConstants.java
stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/stac=
k/cxf/jaspi/config/JBossWSServerAuthConfig.java
stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/scripts/cxf-samples=
-jars-jaxws.xml
stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/j=
boss/test/ws/jaxws/cxf/jbws3098/BusHolderLifeCycleTestCase.java
stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/j=
boss/test/ws/jaxws/samples/wsse/policy/jaspi/ServiceImpl.java
Log:
More cleanup and refactor
Modified: stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/w=
sf/stack/cxf/jaspi/config/JBossWSAuthConfigProvider.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSAuthConfigProvider.java 2013-12-18 03:54:30 UTC =
(rev 18200)
+++ stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSAuthConfigProvider.java 2013-12-18 08:55:58 UTC =
(rev 18201)
@@ -33,34 +33,36 @@
/** =
* @author Jim Ma
*/
-public class JBossWSAuthConfigProvider implements AuthConfigProvider {
- private Properties contextProperties;
- =
- public JBossWSAuthConfigProvider(Properties props, AuthConfigFactory fact=
ory) {
- contextProperties =3D props;
- if (factory !=3D null) {
- factory.registerConfigProvider(this, "soap", null,"JBossWS AuthConfigPr=
ovider");
- }
+public class JBossWSAuthConfigProvider implements AuthConfigProvider
+{
+ private Properties contextProperties;
=
- }
- =
- @Override
- public ClientAuthConfig getClientAuthConfig(String layer,
- String appContext, CallbackHandler handler) throws AuthException, Secur=
ityException {
- return new JBossWSClientAuthConfig(layer, appContext, handler, contextPr=
operties);
- }
+ public JBossWSAuthConfigProvider(Properties props, AuthConfigFactory fa=
ctory)
+ {
+ contextProperties =3D props;
+ if (factory !=3D null)
+ {
+ factory.registerConfigProvider(this, "soap", null, "JBossWS AuthC=
onfigProvider");
+ }
=
- @Override
- public ServerAuthConfig getServerAuthConfig(String layer,
- String appContext, CallbackHandler handler) throws AuthException,
- SecurityException {
- return new JBossWSServerAuthConfig(layer, appContext, handler, contextPr=
operties);
- }
+ }
=
- @Override
- public void refresh() {
- =
- =
- }
- =
+ @Override
+ public ClientAuthConfig getClientAuthConfig(String layer, String appCon=
text, CallbackHandler handler) throws AuthException, SecurityException
+ {
+ return new JBossWSClientAuthConfig(layer, appContext, handler, conte=
xtProperties);
+ }
+
+ @Override
+ public ServerAuthConfig getServerAuthConfig(String layer, String appCon=
text, CallbackHandler handler) throws AuthException, SecurityException
+ {
+ return new JBossWSServerAuthConfig(layer, appContext, handler, conte=
xtProperties);
+ }
+
+ @Override
+ public void refresh()
+ {
+
+ }
+
}
\ No newline at end of file
Modified: stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/w=
sf/stack/cxf/jaspi/config/JBossWSAuthConstants.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSAuthConstants.java 2013-12-18 03:54:30 UTC (rev =
18200)
+++ stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSAuthConstants.java 2013-12-18 08:55:58 UTC (rev =
18201)
@@ -20,11 +20,12 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.wsf.stack.cxf.jaspi.config;
+
/** =
* @author Jim Ma
*/
-public class JBossWSAuthConstants {
- public static final String WSS4J_CONFIG =3D "wss4j.config";
- public static final String SOAP_LAYER =3D "soap";
+public class JBossWSAuthConstants
+{
+ public static final String SOAP_LAYER =3D "soap";
=
}
Modified: stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/w=
sf/stack/cxf/jaspi/config/JBossWSServerAuthConfig.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSServerAuthConfig.java 2013-12-18 03:54:30 UTC (r=
ev 18200)
+++ stack/cxf/branches/jaspi/modules/server/src/main/java/org/jboss/wsf/sta=
ck/cxf/jaspi/config/JBossWSServerAuthConfig.java 2013-12-18 08:55:58 UTC (r=
ev 18201)
@@ -32,8 +32,6 @@
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.message.AuthException;
import javax.security.auth.message.MessageInfo;
-import javax.security.auth.message.config.AuthConfig;
-import javax.security.auth.message.config.ServerAuthConfig;
import javax.security.auth.message.config.ServerAuthContext;
import javax.security.auth.message.module.ServerAuthModule;
import javax.xml.namespace.QName;
@@ -50,29 +48,22 @@
import org.jboss.security.auth.callback.JBossCallbackHandler;
import org.jboss.security.auth.container.config.AuthModuleEntry;
import org.jboss.security.auth.login.JASPIAuthenticationInfo;
+import org.jboss.security.auth.message.config.JBossServerAuthConfig;
import org.jboss.security.config.ControlFlag;
import org.jboss.security.plugins.ClassLoaderLocator;
import org.jboss.security.plugins.ClassLoaderLocatorFactory;
/** =
* @author Jim Ma
*/
-//TODO: Refactor JBossServerAuthConfig, this class should extend JBossSer=
verAuthConfig, =
-public class JBossWSServerAuthConfig implements ServerAuthConfig {
- private String layer;
- private String appContextId;
+public class JBossWSServerAuthConfig extends JBossServerAuthConfig {
private CallbackHandler callbackHandler =3D new JBossCallbackHandler();
@SuppressWarnings("rawtypes")
private List modules =3D new ArrayList();
- @SuppressWarnings({"rawtypes" })
- private Map contextProperties;
=
@SuppressWarnings("rawtypes")
public JBossWSServerAuthConfig(String layer, String appContext,
CallbackHandler handler, Map properties) {
- this.layer =3D layer;
- this.appContextId =3D appContext;
- this.callbackHandler =3D handler;
- this.contextProperties =3D properties;
+ super(layer, appContext, handler, properties);
}
=
@SuppressWarnings({ "rawtypes", "unchecked" })
@@ -141,32 +132,6 @@
return serverAuthContext;
}
=
- /**
- * @see AuthConfig#getAppContext()
- */
- public String getAppContext() {
- return this.appContextId;
- }
-
- /**
- * @see AuthConfig#getMessageLayer()
- */
- public String getMessageLayer() {
- return this.layer;
- }
-
- /**
- * @see AuthConfig#refresh()
- */
- public void refresh() {
- }
-
- // Custom Methods
- @SuppressWarnings({ "rawtypes" })
- public List getServerAuthModules() {
- return this.modules;
- }
- =
@SuppressWarnings("rawtypes")
public String getAuthContextID(MessageInfo messageInfo)
{
Modified: stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/scripts/cxf-=
samples-jars-jaxws.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/scripts/cxf-sample=
s-jars-jaxws.xml 2013-12-18 03:54:30 UTC (rev 18200)
+++ stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/scripts/cxf-sample=
s-jars-jaxws.xml 2013-12-18 08:55:58 UTC (rev 18201)
@@ -553,7 +553,8 @@
-
+
+
Modified: stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/jav=
a/org/jboss/test/ws/jaxws/cxf/jbws3098/BusHolderLifeCycleTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/=
jboss/test/ws/jaxws/cxf/jbws3098/BusHolderLifeCycleTestCase.java 2013-12-18=
03:54:30 UTC (rev 18200)
+++ stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/=
jboss/test/ws/jaxws/cxf/jbws3098/BusHolderLifeCycleTestCase.java 2013-12-18=
08:55:58 UTC (rev 18201)
@@ -26,6 +26,7 @@
import org.apache.cxf.Bus;
import org.apache.cxf.buslifecycle.BusLifeCycleListener;
import org.apache.cxf.buslifecycle.BusLifeCycleManager;
+import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.stack.cxf.client.util.SpringUtils;
import org.jboss.wsf.stack.cxf.configuration.BusHolder;
import org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder;
Modified: stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/jav=
a/org/jboss/test/ws/jaxws/samples/wsse/policy/jaspi/ServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/=
jboss/test/ws/jaxws/samples/wsse/policy/jaspi/ServiceImpl.java 2013-12-18 0=
3:54:30 UTC (rev 18200)
+++ stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/java/org/=
jboss/test/ws/jaxws/samples/wsse/policy/jaspi/ServiceImpl.java 2013-12-18 0=
8:55:58 UTC (rev 18201)
@@ -23,6 +23,8 @@
=
import javax.jws.WebService;
=
+import org.jboss.ws.api.annotation.EndpointConfig;
+
@WebService
(
portName =3D "SecurityServicePort",
@@ -31,6 +33,8 @@
targetNamespace =3D "http://www.jboss.org/jbossws/ws-extensions/wssecur=
itypolicy",
endpointInterface =3D "org.jboss.test.ws.jaxws.samples.wsse.policy.jasp=
i.ServiceIface"
)
+(a)EndpointConfig(configFile =3D "WEB-INF/jaxws-endpoint-config.xml", conf=
igName =3D "jaspiSecurityDomain")
+
public class ServiceImpl implements ServiceIface
{
public String sayHello()
Added: stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/resour=
ces/jaxws/samples/wsse/policy/jaspi/WEB-INF/jaxws-endpoint-config.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/resources=
/jaxws/samples/wsse/policy/jaspi/WEB-INF/jaxws-endpoint-config.xml =
(rev 0)
+++ stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/src/test/resources=
/jaxws/samples/wsse/policy/jaspi/WEB-INF/jaxws-endpoint-config.xml 2013-12-=
18 08:55:58 UTC (rev 18201)
@@ -0,0 +1,12 @@
+
+
+
+ jaspiSecurityDomain
+
+ jaspi.security.domain
+ jaspi
+
+
+
\ No newline at end of file
Property changes on: stack/cxf/branches/jaspi/modules/testsuite/cxf-tests/s=
rc/test/resources/jaxws/samples/wsse/policy/jaspi/WEB-INF/jaxws-endpoint-co=
nfig.xml
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
--===============7361610837232690479==--