KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > connectors > authentication > ConnectorSecurityMap


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.enterprise.connectors.authentication;
26
27 import java.io.Serializable JavaDoc;
28 import com.sun.enterprise.connectors.authentication.EisBackendPrincipal;
29
30 /**
31  * @author ko133006
32  */

33 public class ConnectorSecurityMap implements Serializable JavaDoc {
34     private String JavaDoc name;
35
36     private String JavaDoc[] principals;
37
38     private String JavaDoc[] userGroups;
39
40     private EisBackendPrincipal backendPrincipal;
41
42     public ConnectorSecurityMap(String JavaDoc name, String JavaDoc[] principals,
43             String JavaDoc[] userGroups, EisBackendPrincipal backendPrincipal) {
44         this.name = name;
45         this.principals = principals;
46         this.userGroups = userGroups;
47         this.backendPrincipal = backendPrincipal;
48     }
49
50     /**
51      * @return Returns the backendPrincipal.
52      */

53     public EisBackendPrincipal getBackendPrincipal() {
54         return this.backendPrincipal;
55     }
56
57     /**
58      * @param backendPrincipal
59      * The backendPrincipal to set.
60      */

61     public void setBackendPrincipal(EisBackendPrincipal backendPrincipal) {
62         this.backendPrincipal = backendPrincipal;
63     }
64
65     /**
66      * @return Returns the name.
67      */

68     public String JavaDoc getName() {
69         return this.name;
70     }
71
72     /**
73      * @param name
74      * The name to set.
75      */

76     public void setName(String JavaDoc name) {
77         this.name = name;
78     }
79
80     /**
81      * @return Returns the principals.
82      */

83     public String JavaDoc[] getPrincipals() {
84         return this.principals;
85     }
86
87     /**
88      * @param principals
89      * The principals to set.
90      */

91     public void setPrincipals(String JavaDoc[] principals) {
92         this.principals = principals;
93     }
94
95     /**
96      * @return Returns the userGroups.
97      */

98     public String JavaDoc[] getUserGroups() {
99         return this.userGroups;
100     }
101
102     /**
103      * @param userGroups The userGroups to set.
104      */

105     public void setUserGroups(String JavaDoc[] userGroups) {
106         this.userGroups = userGroups;
107     }
108 }
109
Popular Tags