org.nuxeo.runtime.api.login
Class DefaultCallbackHandler
java.lang.Object
org.nuxeo.runtime.api.login.DefaultCallbackHandler
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler
public class DefaultCallbackHandler
- extends java.lang.Object
- implements javax.security.auth.callback.CallbackHandler
Copied from jbossx.
- Author:
- Scott.Stark@jboss.org
Constructor Summary |
DefaultCallbackHandler(java.lang.String username,
char[] password)
Initializes the UsernamePasswordHandler with the username and password to
use. |
DefaultCallbackHandler(java.lang.String username,
java.lang.Object credential)
|
Method Summary |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Sets any NameCallback name property to the instance username, sets any
PasswordCallback password property to the instance, and any password. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCallbackHandler
public DefaultCallbackHandler(java.lang.String username,
char[] password)
- Initializes the UsernamePasswordHandler with the username and password to
use.
- Parameters:
username
- the user namepassword
- the password for this user
DefaultCallbackHandler
public DefaultCallbackHandler(java.lang.String username,
java.lang.Object credential)
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws javax.security.auth.callback.UnsupportedCallbackException
- Sets any NameCallback name property to the instance username, sets any
PasswordCallback password property to the instance, and any password.
- Specified by:
handle
in interface javax.security.auth.callback.CallbackHandler
- Throws:
UnsupportedCallbackException,
- thrown if any callback of type other than NameCallback or
PasswordCallback are seen.
javax.security.auth.callback.UnsupportedCallbackException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.