public class ScriptableResourceAccess extends AbstractScriptableHeapObject<Set> implements ResourceAccess
AbstractScriptableHeapObject
.Modifier and Type | Class and Description |
---|---|
static class |
ScriptableResourceAccess.Heaplet
Creates and initializes a scriptable object in a heap environment.
|
AbstractScriptableHeapObject.AbstractScriptableHeaplet
Modifier and Type | Method and Description |
---|---|
Promise<Set<String>,ResponseException> |
getRequiredScopes(Context context,
Request request)
Returns the scopes required to access the resource.
|
close, runScript, setArgs, setClientHandler
public Promise<Set<String>,ResponseException> getRequiredScopes(Context context, Request request)
ResourceAccess
getRequiredScopes
in interface ResourceAccess
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.ResponseException
If an error occurred while resolving scope set.
Should never return null
.Copyright 2011-2017 ForgeRock AS.