jrun.security
Class RolesCallbackHandler
jrun.security.RolesCallbackHandler
- public class RolesCallbackHandler
A default implementation of CallbackHandler for providing username
and password for non-interactive JAAS logins.
|
Constructor Summary |
RolesCallbackHandler(java.security.Principal userPrincipal,
java.lang.Object credential)
Initialize the DefaultHandler with the userPrincipal
and a collection of roles as the credential. |
|
Method Summary |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Sets the Principal and Roles values on the RolesCallback object |
RolesCallbackHandler
public RolesCallbackHandler(java.security.Principal userPrincipal,
java.lang.Object credential)
- Initialize the DefaultHandler with the userPrincipal
and a collection of roles as the credential.
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws javax.security.auth.callback.UnsupportedCallbackException
- Sets the Principal and Roles values on the RolesCallback object
- Throws:
UnsupportedCallbackException, - to ensure only RolesCallback is handled
Copyright � 2002 Macromedia Corporation. All Rights Reserved.