ScopeParser

Utility class for parsing and working with OAuth2 scopes.

Constructors

Link copied to clipboard
constructor(scopes: Array<String>?)

Constructor that takes an array of scopes.

constructor(scopeString: String?)

Constructor that takes a space-delimited scope string.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the set of scopes.

Link copied to clipboard

Returns the scopes as a space-delimited string.

Functions

Link copied to clipboard

Checks whether the id scope exists in this parser's scope set.

Link copied to clipboard

Checks whether the refresh_token scope exists in this parser's scope set.

Link copied to clipboard
fun hasScope(scope: String?): Boolean

Checks whether the provided scope exists in this parser's scope set.