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 Set<String>getRequiredScopes(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)Returns the scopes required to access the resource.
-
-
-
Method Detail
-
getRequiredScopes
Set<String> getRequiredScopes(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request) throws org.forgerock.http.protocol.ResponseException
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:
- Scopes required to access the resource. Should never return
null. - Throws:
org.forgerock.http.protocol.ResponseException- If an error occurred while resolving scope set
-
-