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:
DeviceSSOScopeValue,OIDCScopeValue
- Enclosing class:
- Scope
Authorisation scope value.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration 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 TypeMethodDescriptionbooleanGets 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 benullor empty string.
-
Value
Creates a new scope value with an optional requirement.- Parameters:
value- The scope value. Must not benullor empty string.requirement- The requirement,nullif not specified.
-
-
Method Details
-
getRequirement
Gets the requirement of this scope value.- Returns:
- The requirement,
nullif not specified.
-
equals
- Overrides:
equalsin classIdentifier
-