info.magnolia.cms.security.auth.callback
Class CredentialsCallbackHandler

java.lang.Object
  extended by 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$

Field Summary
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 Summary
CredentialsCallbackHandler()
          Default constructor required by java security framework.
CredentialsCallbackHandler(String name, char[] pswd)
           
CredentialsCallbackHandler(String name, char[] pswd, String realm)
           
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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–2014 Magnolia International Ltd.. All rights reserved.