Package com.nimbusds.oauth2.sdk
Class Scope.Value
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.Scope.Value
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
- Direct Known Subclasses:
OIDCScopeValue
- Enclosing class:
- Scope
Authorisation scope value.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of the scope value requirements for application-specific authorisation requests. -
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new scope value.Value
(String value, Scope.Value.Requirement requirement) Creates a new scope value with an optional requirement. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the requirement of this scope value.Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Constructor Details
-
Value
Creates a new scope value. The requirement is not specified.- Parameters:
value
- The scope value. Must not benull
or empty string.
-
Value
Creates a new scope value with an optional requirement.- Parameters:
value
- The scope value. Must not benull
or empty string.requirement
- The requirement,null
if not specified.
-
-
Method Details
-
getRequirement
Gets the requirement of this scope value.- Returns:
- The requirement,
null
if not specified.
-
equals
- Overrides:
equals
in classIdentifier
-