|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.authentication.principals.URIScope
public class URIScope
Class URIScope is a special scope class, which 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.authentication.principals.Scope |
---|
GLOBAL |
Constructor Summary | |
---|---|
URIScope(java.lang.String uri)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(java.lang.String uri,
Scope scope)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(java.net.URI uri)
Constructor creates a new URIScope with the specified uri as name. |
|
URIScope(java.net.URI uri,
Scope scope)
Constructor URIScope creates a new URIScope instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns the equaltiy. |
java.lang.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. |
java.net.URI |
getURI()
Method gets the URI of this URIScope object. |
int |
hashCode()
Returns the hashCode. |
java.lang.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(java.lang.String uri) throws java.lang.IllegalArgumentException
uri
- the uri != null.
java.lang.IllegalArgumentException
- if the given string is not an uri.public URIScope(java.lang.String uri, Scope scope) throws java.lang.IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.
java.lang.IllegalArgumentException
- if the given string is not an uri.public URIScope(java.net.URI uri) throws java.lang.IllegalArgumentException
uri
- the uri != null.
java.lang.IllegalArgumentException
- if uri is null.public URIScope(java.net.URI uri, Scope scope) throws java.lang.IllegalArgumentException
uri
- the uri != null.scope
- the scope != null.
java.lang.IllegalArgumentException
- if one of the parameters is null.Method Detail |
---|
public Scope getScope()
getScope
in interface Scope
Scope.getScope()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface Scope
Scope.getName()
public java.net.URI getURI()
public java.lang.String toString()
getName()
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |