public class Scope extends Object implements Serializable
Constructor and Description |
---|
Scope(Set<String> scopeSet)
Create a new scope.
|
Scope(String... scopeArray)
Create a new scope.
|
Scope(String scopeStr)
Create a new scope.
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
decode(String scope)
Converts a space delimited string of scopes to a set.
|
static String |
encode(Set<String> scopes)
Converts a set of scopes to a space delimited string of scopes.
|
boolean |
equals(Object obj)
Determines if two scope objects contain the same list of scopes.
|
Scope |
expanded()
Expands all group mappings by iterating the scopes.
|
Set<String> |
getScopeSet()
Get the set of scopes.
|
String |
getScopeStr()
Get the list of scopes.
|
boolean |
hasAllScopes(Scope scope)
A Scope object contains a set of scopes.
|
int |
hashCode()
Returns the object's hashcode
|
boolean |
hasScope(String individualScopeValue)
Determines if the current set of scopes contains the specified scope.
|
boolean |
isEqualOrLesserThan(Scope scope)
Determines if the scope object contains the same scopes, or less, than
the one passed in.
|
Set<String> |
scopesNotIn(Scope scope)
Returns the difference between the current scope and the scope passed in.
|
void |
setGroupMappings(Map<String,Set<String>> groupMappings)
Sets the group mappings.
|
String |
toString()
Get the string of scopes.
|
public Scope(String scopeStr)
scopeStr
- a space delimited scope string.public Scope(Set<String> scopeSet)
scopeSet
- a set of scope strings.public Scope(String... scopeArray)
scopeArray
- scope strings.public String getScopeStr()
public String toString()
public boolean hasScope(String individualScopeValue)
individualScopeValue
- the scope to search for.public boolean equals(Object obj)
public int hashCode()
public boolean isEqualOrLesserThan(Scope scope)
scope
- the scope to compare.public boolean hasAllScopes(Scope scope)
scope:
- the set of scopes within the Scope object to search for.public Set<String> scopesNotIn(Scope scope)
scope
- the scope to compare differences.public Scope expanded()
public static Set<String> decode(String scope)
scope
- space delimited string of scopes.public static String encode(Set<String> scopes)
scopes
- a set of scopes.Copyright 2019 Ping Identity Corp. All rights reserved.