public class RolePrincipal extends NamePrincipal implements Serializable
Constructor and Description |
---|
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.
|
public RolePrincipal(String name) throws IllegalArgumentException
name
- a role name != null.IllegalArgumentException
- if one of the arguments is null.public RolePrincipal(String name, Scope scope) throws IllegalArgumentException
name
- a role name != null.scope
- the scope of the role != null.IllegalArgumentException
- if one of the arguments is null.Copyright © 2004–2016 52north.org. All rights reserved.