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

java.lang.Object
  extended by info.magnolia.cms.security.auth.callback.CredentialsCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler
Direct Known Subclasses:
Base64CallbackHandler, PlainTextCallbackHandler

public class CredentialsCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

A JAAS CallbackHandler using plain text passwords.

Version:
$Id: CredentialsCallbackHandler.java 41137 2011-01-06 18:19:25Z gjoseph $

Field Summary
protected static org.slf4j.Logger log
           
protected  java.lang.String name
           
protected  char[] pswd
           
protected  java.lang.String realm
          The realm to which we login.
protected  User user
           
 
Constructor Summary
CredentialsCallbackHandler()
          Default constructor required by java security framework.
CredentialsCallbackHandler(java.lang.String name, char[] pswd)
           
CredentialsCallbackHandler(java.lang.String name, char[] pswd, java.lang.String realm)
           
 
Method Summary
 User getUser()
           
 void handle(javax.security.auth.callback.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 java.lang.String name

pswd

protected char[] pswd

realm

protected java.lang.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(java.lang.String name,
                                  char[] pswd)

CredentialsCallbackHandler

public CredentialsCallbackHandler(java.lang.String name,
                                  char[] pswd,
                                  java.lang.String realm)
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Handle name and password callbacks called during the JAAS login processing.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException

getUser

public User getUser()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.