KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > SecurityMapConfig


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24
25 package com.sun.appserv.management.config;
26
27 import com.sun.appserv.management.base.XTypes;
28 import com.sun.appserv.management.base.Container;
29
30
31
32 /**
33     Represents the <security-map> element.
34     <p>
35     Perform mapping from principal received during Servlet/EJB
36     authentication, to credentials accepted by the EIS. This mapping
37     is optional.It is possible to map multiple (server) principal to
38     the same backend principal.
39     
40     @since Appserver 9.0
41 */

42 public interface SecurityMapConfig
43     extends ConfigElement, Container
44 {
45 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
46     public static final String JavaDoc J2EE_TYPE = XTypes.SECURITY_MAP_CONFIG;
47     
48     public String JavaDoc[] getPrincipalNames();
49     public void createPrincipal( String JavaDoc name );
50     public void removePrincipal( String JavaDoc name );
51     
52     public String JavaDoc[] getUserGroupNames();
53     public void createUserGroup( String JavaDoc name );
54     public void removeUserGroup( String JavaDoc name );
55     
56     public BackendPrincipalConfig getBackendPrincipalConfig();
57 }
58
Popular Tags