|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.ScopeToken
@Immutable public class ScopeToken
Authorisation Scope
token. This class is immutable.
Nested Class Summary | |
---|---|
static class |
ScopeToken.Requirement
Enumeration of the scope token requirements
for application-specific authorisation requests. |
Constructor Summary | |
---|---|
ScopeToken(String value)
Creates a new scope token with the specified value. |
|
ScopeToken(String value,
ScopeToken.Requirement requirement)
Creates a new scope token with the specified value and optional requirement. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Overrides Object.equals() . |
ScopeToken.Requirement |
getRequirement()
Gets the requirement of this scope token. |
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier |
---|
getValue, hashCode, toJSONString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScopeToken(String value)
value
- The scope token value. Must not be null
or
empty string.public ScopeToken(String value, ScopeToken.Requirement requirement)
value
- The scope token value. Must not be null
or empty string.requirement
- The requirement, null
if not specified.Method Detail |
---|
public ScopeToken.Requirement getRequirement()
null
if not specified.public boolean equals(Object object)
Identifier
Object.equals()
.
equals
in class Identifier
object
- The object to compare to.
true
if the objects have the same value, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |