public abstract class NamePrincipal extends Object implements Principal, Scope, Serializable
Constructor and Description |
---|
NamePrincipal(String name,
Scope scope)
Constructor NamePrincipal creates a new NamePrincipal instance,
which name is only valid within the given scope.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName() |
Scope |
getScope()
Gets the 'parent' scope of this scope.
|
int |
hashCode() |
String |
toString() |
public NamePrincipal(String name, Scope scope) throws IllegalArgumentException
name
- the name != null.scope
- the scope != null.IllegalArgumentException
- if one of the arguments is null.public String getName()
public Scope getScope()
Scope
Scope.GLOBAL
scope shall
returned.public boolean equals(Object o)
public int hashCode()
Copyright © 2004–2018 52north.org. All rights reserved.