Spring Web Services Framework

org.springframework.ws.soap.security.xwss.callback
Class SimplePasswordValidationCallbackHandler

java.lang.Object
  extended by org.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler
      extended by org.springframework.ws.soap.security.xwss.callback.SimplePasswordValidationCallbackHandler
All Implemented Interfaces:
CallbackHandler, InitializingBean

public class SimplePasswordValidationCallbackHandler
extends AbstractCallbackHandler
implements InitializingBean

Simple callback handler that validates passwords agains a in-memory Properties object. Password validation is done on a case-sensitive basis.

This class only handles PasswordValidationCallbacks, and throws an UnsupportedCallbackException for others

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
setUsers(java.util.Properties)

Field Summary
 
Fields inherited from class org.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler
logger
 
Constructor Summary
SimplePasswordValidationCallbackHandler()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  void handleInternal(Callback callback)
          Template method that should be implemented by subclasses.
 void setUsers(Properties users)
          Sets the users to validate against.
 void setUsersMap(Map users)
           
 
Methods inherited from class org.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePasswordValidationCallbackHandler

public SimplePasswordValidationCallbackHandler()
Method Detail

setUsers

public void setUsers(Properties users)
Sets the users to validate against. Property names are usernames, property values are passwords.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

handleInternal

protected void handleInternal(Callback callback)
                       throws IOException,
                              UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Template method that should be implemented by subclasses.

Specified by:
handleInternal in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

setUsersMap

public void setUsersMap(Map users)

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.