public interface ScopeAuthorization extends AuthorizationProvider
| Modifier and Type | Method and Description |
|---|---|
String |
claimKey()
Returns the configured claim key.
|
static ScopeAuthorization |
create()
Factory method to create a Authorization provider for Oauth 2.0 scopes using the default separator
" ". |
static ScopeAuthorization |
create(String scopeSeparator)
Factory method to create a Authorization provider for Oauth 2.0 scopes.
|
static ScopeAuthorization |
create(String scopeSeparator,
String claimKey)
Factory method to create a Authorization provider for OpenID Connect scopes.
|
String |
encode(List<String> scopes)
Returns a String with the given scopes concatenated with the given separator.
|
String |
separator()
Returns the configured separator.
|
create, getAuthorizations, getAuthorizations, getIdstatic ScopeAuthorization create()
" ".static ScopeAuthorization create(String scopeSeparator)
scopeSeparator - the scope separator e.g.: " ", ",", "+"static ScopeAuthorization create(String scopeSeparator, String claimKey)
scopeSeparator - the scope separator e.g.: " ", ",", "+"claimKey - the scope claim key e.g.: "scp", "scope"String separator()
String claimKey()
Copyright © 2022 Eclipse. All rights reserved.