Author: thomas.diesler(a)jboss.com
Date: 2006-12-23 19:55:18 -0500 (Sat, 23 Dec 2006)
New Revision: 1771
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
Log:
Fix jse deployement for jboss42
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java
===================================================================
---
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java 2006-12-24
00:55:10 UTC (rev 1770)
+++
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/security/ReceiveUsernameOperation.java 2006-12-24
00:55:18 UTC (rev 1771)
@@ -46,6 +46,9 @@
UsernameToken user = (UsernameToken)token;
String propName = SecurityAssociationAdaptorFactory.class.getName();
SecurityAssociationAdaptorFactory factory =
(SecurityAssociationAdaptorFactory)FactoryLoader.loadFactory(propName, null);
+ if (factory == null)
+ throw new WSSecurityException("Cannot load: " + propName);
+
SecurityAssociationAdaptor securityAdaptor =
factory.getSecurityAssociationAdaptor();
securityAdaptor.setPrincipal(new SimplePrincipal(user.getUsername()));
securityAdaptor.setCredential(user.getPassword());
Show replies by date