| |
|
| java.lang.Object com.ecyrd.jspwiki.auth.GroupPrincipal
GroupPrincipal | final public class GroupPrincipal implements Principal(Code) | | Immutable Principal that represents a Group. GroupPrincipals are injected
into a Subject's principal list at the time of authentication (login), and
serve as proxies for Group objects for the purposes of making Java 2 security
policy decisions. We add GroupPrincipals instead of the actual Groups because
calling classes should never be able to obtain a mutable object (Group
memberships can be changed by callers). Administrators who wish to grant
privileges to specific wiki groups via the security policy file should always specify
principals of type GroupPrincipal.
See Also: com.ecyrd.jspwiki.auth.authorize.Group author: Andrew Jaquith since: 2.3.79 |
Constructor Summary | |
public | GroupPrincipal(String group) Constructs a new GroupPrincipal object with a supplied name. |
Method Summary | |
final public boolean | equals(Object obj) Two GroupPrincipals are equal if their names are equal. | final public String | getName() Returns the name of the group principal. | final public int | hashCode() Returns the hashcode for this object. | final public String | toString() Returns a string representation of this object. |
GroupPrincipal | public GroupPrincipal(String group)(Code) | | Constructs a new GroupPrincipal object with a supplied name.
Parameters: group - the wiki group; cannot be null |
|
|
|