01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.security.deploy;
17:
18: import java.io.Serializable;
19: import java.util.HashSet;
20: import java.util.Map;
21: import java.util.Set;
22: import java.security.Principal;
23:
24: import org.apache.geronimo.security.RealmPrincipal;
25: import org.apache.geronimo.security.DomainPrincipal;
26:
27: /**
28: * @version $Rev: 545781 $ $Date: 2007-06-09 10:44:02 -0700 (Sat, 09 Jun 2007) $
29: */
30: public class Role implements Serializable {
31:
32: private String roleName;
33: private final Set<RealmPrincipalInfo> realmPrincipals = new HashSet<RealmPrincipalInfo>();
34: private final Set<LoginDomainPrincipalInfo> domainPrincipals = new HashSet<LoginDomainPrincipalInfo>();
35: private final Set<PrincipalInfo> principals = new HashSet<PrincipalInfo>();
36: private final Set<DistinguishedName> distinguishedNames = new HashSet<DistinguishedName>();
37:
38: public String getRoleName() {
39: return roleName;
40: }
41:
42: public void setRoleName(String roleName) {
43: this .roleName = roleName;
44: }
45:
46: public Set<RealmPrincipalInfo> getRealmPrincipals() {
47: return realmPrincipals;
48: }
49:
50: public Set<LoginDomainPrincipalInfo> getLoginDomainPrincipals() {
51: return domainPrincipals;
52: }
53:
54: public Set<PrincipalInfo> getPrincipals() {
55: return principals;
56: }
57:
58: public Set<DistinguishedName> getDistinguishedNames() {
59: return distinguishedNames;
60: }
61: }
|