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.
|
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–2016 52north.org. All rights reserved.