info.magnolia.cms.security.auth.callback
Class CredentialsCallbackHandler
java.lang.Object
info.magnolia.cms.security.auth.callback.CredentialsCallbackHandler
- All Implemented Interfaces:
- CallbackHandler
- Direct Known Subclasses:
- Base64CallbackHandler, PlainTextCallbackHandler
public class CredentialsCallbackHandler
- extends Object
- implements CallbackHandler
A JAAS CallbackHandler
using plain text passwords.
- Version:
- $Id: CredentialsCallbackHandler.java 41137 2011-01-06 18:19:25Z gjoseph $
Method Summary |
User |
getUser()
|
void |
handle(Callback[] callbacks)
Handle name and password callbacks called during the JAAS login processing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.slf4j.Logger log
name
protected String name
pswd
protected char[] pswd
realm
protected String realm
- The realm to which we login.
user
protected User user
CredentialsCallbackHandler
public CredentialsCallbackHandler()
- Default constructor required by java security framework.
CredentialsCallbackHandler
public CredentialsCallbackHandler(String name,
char[] pswd)
CredentialsCallbackHandler
public CredentialsCallbackHandler(String name,
char[] pswd,
String realm)
handle
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
- Handle name and password callbacks called during the JAAS login processing.
- Specified by:
handle
in interface CallbackHandler
- Throws:
IOException
UnsupportedCallbackException
getUser
public User getUser()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.