public class CredentialsCallbackHandler extends Object implements CallbackHandler
CallbackHandler
using plain text passwords.Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
protected String |
name |
protected char[] |
pswd |
protected String |
realm
The realm to which we login.
|
protected User |
user |
Constructor and Description |
---|
CredentialsCallbackHandler()
Default constructor required by java security framework.
|
CredentialsCallbackHandler(String name,
char[] pswd) |
CredentialsCallbackHandler(String name,
char[] pswd,
String realm) |
Modifier and Type | Method and Description |
---|---|
User |
getUser() |
void |
handle(Callback[] callbacks)
Handle name and password callbacks called during the JAAS login processing.
|
protected static org.slf4j.Logger log
protected String name
protected char[] pswd
protected String realm
protected User user
public CredentialsCallbackHandler()
public CredentialsCallbackHandler(String name, char[] pswd)
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
public User getUser()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.