jrun.security
Class DefaultCallbackHandler
jrun.security.DefaultCallbackHandler
- public class DefaultCallbackHandler
A default implementation of CallbackHandler for providing username
and password for non-interactive JAAS logins.
|
Constructor Summary |
DefaultCallbackHandler(java.security.Principal userPrincipal,
java.lang.Object credential)
Initialize the DefaultHandler with the usernmae
and password to use. |
|
Method Summary |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Sets name property to this username and any password
property to this password. |
DefaultCallbackHandler
public DefaultCallbackHandler(java.security.Principal userPrincipal,
java.lang.Object credential)
- Initialize the DefaultHandler with the usernmae
and password to use.
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws javax.security.auth.callback.UnsupportedCallbackException
- Sets name property to this username and any password
property to this password.
- Throws:
UnsupportedCallbackException, - to ensure only NameCallback
or PasswordCallback are seen.
Copyright � 2002 Macromedia Corporation. All Rights Reserved.