KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > auth > SystemAuthenticatorMBean


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.security.auth;
10
11 import org.jboss.system.ServiceMBean;
12
13 /** An MBean that requires a JAAS login in order for it to startup. This
14  * cam be used to require a login to startup the JBoss server.
15  *
16  * @version $Revision: 1.4 $
17  * @author Scott.Stark@jboss.org
18  */

19 public interface SystemAuthenticatorMBean extends ServiceMBean
20 {
21    /** Get the name of the security domain used for authentication
22     */

23    public String JavaDoc getSecurityDomain();
24    /** Set the name of the security domain used for authentication
25     */

26    public void setSecurityDomain(String JavaDoc name);
27
28    /** Get the CallbackHandler to use to obtain the authentication
29     information.
30     @see javax.security.auth.callback.CallbackHandler
31     */

32    public Class JavaDoc getCallbackHandler();
33    /** Specify the CallbackHandler to use to obtain the authentication
34     information.
35     @see javax.security.auth.callback.CallbackHandler
36     */

37    public void setCallbackHandler(Class JavaDoc callbackHandlerClass)
38       throws InstantiationException JavaDoc, IllegalAccessException JavaDoc;
39 }
40
Popular Tags