public class ScopeAuthorizationImpl extends Object implements ScopeAuthorization
| Constructor and Description |
|---|
ScopeAuthorizationImpl(String scopeSeparator,
String claimKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
claimKey()
Returns the configured claim key.
|
String |
encode(List<String> scopes)
Returns a String with the given scopes concatenated with the given separator.
|
void |
getAuthorizations(User user,
Handler<AsyncResult<Void>> handler)
Updates the user with the set of authorizations.
|
String |
getId()
returns the id of the authorization provider
|
String |
separator()
Returns the configured separator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createcreate, getAuthorizationspublic String getId()
AuthorizationProvidergetId in interface AuthorizationProviderpublic void getAuthorizations(User user, Handler<AsyncResult<Void>> handler)
AuthorizationProvidergetAuthorizations in interface AuthorizationProvideruser - user to lookup and updatehandler - result handlerpublic String separator()
ScopeAuthorizationseparator in interface ScopeAuthorizationpublic String claimKey()
ScopeAuthorizationclaimKey in interface ScopeAuthorizationpublic String encode(List<String> scopes)
ScopeAuthorizationencode in interface ScopeAuthorizationscopes - a list of scopesCopyright © 2021. All rights reserved.