public class SimpleUsernamePasswordCallbackHandler extends AbstractCallbackHandler implements org.springframework.beans.factory.InitializingBean
This class handles UsernameCallback
s and PasswordCallback
s, 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) |
handle
public SimpleUsernamePasswordCallbackHandler()
SimpleUsernamePasswordCallbackHandler
.public void setPassword(String password)
public void setUsername(String username)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandler
handleInternal
in class AbstractCallbackHandler
IOException
UnsupportedCallbackException
Copyright © 2020 Pivotal Software. All rights reserved.