|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.authentication.principals.NamePrincipal
org.n52.security.authentication.principals.RolePrincipal
public class RolePrincipal
Class RolePrincipal represents a role(-identity) of a user.
Field Summary |
---|
Fields inherited from interface org.n52.security.authentication.principals.Scope |
---|
GLOBAL |
Constructor Summary | |
---|---|
RolePrincipal(java.lang.String name)
Creates a role principal with the given name and valid in the global scope. |
|
RolePrincipal(java.lang.String name,
Scope scope)
Creates a role principal with the given name and valid only for the specified scope. |
Method Summary |
---|
Methods inherited from class org.n52.security.authentication.principals.NamePrincipal |
---|
equals, getName, getScope, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
public RolePrincipal(java.lang.String name) throws java.lang.IllegalArgumentException
name
- a role name != null.
java.lang.IllegalArgumentException
- if one of the arguments is null.public RolePrincipal(java.lang.String name, Scope scope) throws java.lang.IllegalArgumentException
name
- a role name != null.scope
- the scope of the role != null.
java.lang.IllegalArgumentException
- if one of the arguments is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |