@Immutable public static class Scope.Value extends Identifier
Modifier and Type | Class and Description |
---|---|
static class |
Scope.Value.Requirement
Enumeration of the scope value requirements for
application-specific authorisation requests.
|
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
Scope.Value(String value)
Creates a new scope value.
|
Scope.Value(String value,
Scope.Value.Requirement requirement)
Creates a new scope value with an optional requirement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Overrides
Object.equals() . |
Scope.Value.Requirement |
getRequirement()
Gets the requirement of this scope value.
|
compareTo, getValue, hashCode, toJSONString, toString
public Scope.Value(String value)
value
- The scope value. Must not be null
or
empty string.public Scope.Value(String value, Scope.Value.Requirement requirement)
value
- The scope value. Must not be null
or empty string.requirement
- The requirement, null
if not
specified.public Scope.Value.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
.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.