Package org.forgerock.http.oauth2
Interface ResourceAccess
- 
public interface ResourceAccessAResourceAccessencapsulates the logic of required scope selection. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promise<Set<String>,ResponseException>getRequiredScopes(Context context, Request request)Returns the scopes required to access the resource. 
 - 
 
- 
- 
Method Detail
- 
getRequiredScopes
Promise<Set<String>,ResponseException> getRequiredScopes(Context context, Request request)
Returns the scopes required to access the resource.- Parameters:
 context- The current context which might be used to retrieve required scopes.request- The current OAuth2 request which might be used to retrieve required scopes.- Returns:
 - A promise containing the scopes required to access the resource. The promise may be
 completed with a 
ResponseExceptionIf an error occurred while resolving scope set. Should never returnnull. 
 
 - 
 
 -