public class SimpleUsernamePasswordCallbackHandler extends AbstractCallbackHandler implements org.springframework.beans.factory.InitializingBean
This class handles UsernameCallbacks and PasswordCallbacks, and throws an
UnsupportedCallbackException for others
setUsername(String),
setPassword(String)logger| Constructor and Description |
|---|
SimpleUsernamePasswordCallbackHandler()
Constructs an empty instance of the
SimpleUsernamePasswordCallbackHandler. |
SimpleUsernamePasswordCallbackHandler(String username,
String password)
Constructs an instance of the
SimpleUsernamePasswordCallbackHandler with the given name and password. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
handleInternal(Callback callback)
Template method that should be implemented by subclasses.
|
void |
setPassword(String password) |
void |
setUsername(String username) |
handlepublic SimpleUsernamePasswordCallbackHandler()
SimpleUsernamePasswordCallbackHandler.public void setPassword(String password)
public void setUsername(String username)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandlerhandleInternal in class AbstractCallbackHandlerIOExceptionUnsupportedCallbackException