public abstract class AbstractScopesIssuer extends Object
| Constructor and Description |
|---|
AbstractScopesIssuer() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllowedScopes(List<String> requestedScopes)
Get the set of default scopes.
|
Map<String,String> |
getAppScopes(String consumerKey,
org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser,
List<String> requestedScopes)
This method is used to get the application scopes including the scopes defined for the APIs subscribed to the
application and the API-M REST API scopes set of the current tenant.
|
protected javax.cache.CacheManager |
getCacheManager(String name)
Get CacheManager instance
|
abstract String |
getPrefix()
This method is used to get the prefix of the scope issuer.
|
protected org.wso2.carbon.user.core.service.RealmService |
getRealmService()
Get RealmService
|
abstract List<String> |
getScopes(org.wso2.carbon.identity.oauth.callback.OAuthCallback scopeValidationCallback)
This method is used to retrieve authorized scopes with respect to an authorization callback.
|
abstract List<String> |
getScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
This method is used to retrieve the authorized scopes with respect to a token.
|
protected int |
getTenantIdOfUser(String username)
Get tenant Id of the user
|
Boolean |
isAppScopesEmpty(Map<String,String> appScopes,
String clientId)
This method is used to check if the application scope list empty.
|
boolean |
isWhiteListedScope(List<String> scopeSkipList,
String scope)
Determines if the scope is specified in the whitelist.
|
public abstract List<String> getScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
tokReqMsgCtx - token message contextpublic abstract List<String> getScopes(org.wso2.carbon.identity.oauth.callback.OAuthCallback scopeValidationCallback)
scopeValidationCallback - Authorization callback to validate scopespublic abstract String getPrefix()
public List<String> getAllowedScopes(List<String> requestedScopes)
requestedScopes - - The set of requested scopespublic boolean isWhiteListedScope(List<String> scopeSkipList, String scope)
scope - - The scope key to checkpublic Map<String,String> getAppScopes(String consumerKey, org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser, List<String> requestedScopes)
consumerKey - Consumer Key of the applicationauthenticatedUser - Authenticated Userpublic Boolean isAppScopesEmpty(Map<String,String> appScopes, String clientId)
appScopes - Application scopes listclientId - Client ID of the applicationprotected javax.cache.CacheManager getCacheManager(String name)
name - The name of the Cacheprotected org.wso2.carbon.user.core.service.RealmService getRealmService()
protected int getTenantIdOfUser(String username)
username - UsernameCopyright © 2024 WSO2. All rights reserved.