|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.subject.URIScope
public class URIScope
A special scope class, whose names are URIs.
Instances of this class can be used to define URN-Names for special principals.
Field Summary |
---|
Fields inherited from interface org.n52.security.common.subject.Scope |
---|
GLOBAL |
Constructor Summary | |
---|---|
URIScope(String uri)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(String uri,
Scope scope)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(URI uri)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(URI uri,
Scope scope)
Constructor URIScope creates a new URIScope instance. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Returns the equaltiy. |
String |
getName()
Method gets the name of this URIScope object, this is the string representation of the internal uri. |
Scope |
getScope()
Method gets the scope of this URIScope object. |
URI |
getURI()
Method gets the URI of this URIScope object. |
int |
hashCode()
Returns the hashCode. |
String |
toString()
Method toString return the name getName() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URIScope(String uri) throws IllegalArgumentException
uri
- the uri != null.
IllegalArgumentException
- if the given string is not an uri.public URIScope(String uri, Scope scope) throws IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.
IllegalArgumentException
- if the given string is not an uri.public URIScope(URI uri) throws IllegalArgumentException
uri
- the uri != null.
IllegalArgumentException
- if uri is null.public URIScope(URI uri, Scope scope) throws IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.
IllegalArgumentException
- if one of the parameters is null.Method Detail |
---|
public Scope getScope()
getScope
in interface Scope
Scope.getScope()
public boolean equals(Object o)
equals
in class Object
o
- the o.
public int hashCode()
hashCode
in class Object
public String getName()
getName
in interface Scope
Scope.getName()
public URI getURI()
public String toString()
getName()
.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |