org.n52.security.common.subject
Class RolePrincipal
java.lang.Object
org.n52.security.common.subject.NamePrincipal
org.n52.security.common.subject.RolePrincipal
- All Implemented Interfaces:
- Serializable, Principal, Scope
public class RolePrincipal
- extends NamePrincipal
- implements Serializable
Role(-identity) of a user.
- Version:
- $Revision: $
- Author:
- Marko Reiprecht
Created on 16.09.2007
- See Also:
- Serialized Form
Fields inherited from interface org.n52.security.common.subject.Scope |
GLOBAL |
Constructor Summary |
RolePrincipal(String name)
Creates a role principal with the given name and valid in the global scope. |
RolePrincipal(String name,
Scope scope)
Creates a role principal with the given name and valid only for the specified scope. |
RolePrincipal
public RolePrincipal(String name)
throws IllegalArgumentException
- Creates a role principal with the given name and valid in the global scope.
It throws an IllegalArgumentException if one of the arguments is null.
- Parameters:
name
- a role name != null.
- Throws:
IllegalArgumentException
- if one of the arguments is null.
RolePrincipal
public RolePrincipal(String name,
Scope scope)
throws IllegalArgumentException
- Creates a role principal with the given name and valid only for the specified scope.
It throws an IllegalArgumentException if one of the arguments is null.
- Parameters:
name
- a role name != null.scope
- the scope of the role != null.
- Throws:
IllegalArgumentException
- if one of the arguments is null.
Copyright © 2004–2014 52north.org. All rights reserved.