org.springframework.ws.soap.security.xwss.callback
Class SimpleUsernamePasswordCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.SimpleUsernamePasswordCallbackHandler
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler, org.springframework.beans.factory.InitializingBean
public class SimpleUsernamePasswordCallbackHandler
- extends AbstractCallbackHandler
- implements org.springframework.beans.factory.InitializingBean
Simple callback handler that supplies a username and password to a username token at runtime.
This class handles UsernameCallbacks and PasswordCallbacks, and throws an
UnsupportedCallbackException for others
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
setUsername(String),
setPassword(String)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleUsernamePasswordCallbackHandler
public SimpleUsernamePasswordCallbackHandler()
setPassword
public void setPassword(java.lang.String password)
setUsername
public void setUsername(java.lang.String username)
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.