org.springframework.ws.soap.security.xwss.callback
Class SimplePasswordValidationCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.SimplePasswordValidationCallbackHandler
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler, org.springframework.beans.factory.InitializingBean
public class SimplePasswordValidationCallbackHandler
- extends AbstractCallbackHandler
- implements org.springframework.beans.factory.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)
|
Method Summary |
void |
afterPropertiesSet()
|
protected void |
handleInternal(javax.security.auth.callback.Callback callback)
Template method that should be implemented by subclasses. |
void |
setUsers(java.util.Properties users)
Sets the users to validate against. |
void |
setUsersMap(java.util.Map<java.lang.String,java.lang.String> users)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePasswordValidationCallbackHandler
public SimplePasswordValidationCallbackHandler()
setUsers
public void setUsers(java.util.Properties users)
- Sets the users to validate against. Property names are usernames, property values are passwords.
setUsersMap
public void setUsersMap(java.util.Map<java.lang.String,java.lang.String> users)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
handleInternal
protected void handleInternal(javax.security.auth.callback.Callback callback)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
- Description copied from class:
AbstractCallbackHandler
- Template method that should be implemented by subclasses.
- Specified by:
handleInternal in class AbstractCallbackHandler
- Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
Copyright © 2011. All Rights Reserved.