@NotThreadSafe public class Scope extends LinkedHashSet<Scope.Value>
Example scope from OpenID Connect indicating access to the user's email and profile details:
Scope scope = new Scope(); scope.add(OIDCScopeValue.OPENID); scope.add(OIDCScopeValue.EMAIL); scope.add(OIDCScopeValue.PROFILE);
Related specifications:
Modifier and Type | Class and Description |
---|---|
static class |
Scope.Value
Authorisation scope value.
|
Constructor and Description |
---|
Scope()
Creates a new empty authorisation scope.
|
Modifier and Type | Method and Description |
---|---|
static Scope |
parse(Collection<String> collection)
Parses a scope from the specified string collection representation.
|
static Scope |
parse(String s)
Parses a scope from the specified string representation.
|
String |
toString()
Returns the string representation of this scope.
|
List<String> |
toStringList()
Returns the string list representation of this scope.
|
add, clear, clone, contains, isEmpty, iterator, remove, size
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray
public Scope()
public List<String> toStringList()
public String toString()
toString
in class AbstractCollection<Scope.Value>
public static Scope parse(Collection<String> collection)
collection
- The string collection, null
if not
specified.null
if not specified.Copyright © 2013 NimbusDS. All Rights Reserved.