Package com.authlete.common.dto
Class GrantScope
- java.lang.Object
-
- com.authlete.common.dto.GrantScope
-
- All Implemented Interfaces:
Serializable
public class GrantScope extends Object implements Serializable
Scope representation in a grant.This class holds the same information as each entry in the
"scopes"array in the response from the Grant Management Endpoint on the grant management action 'query' does.- Since:
- 3.1
- See Also:
- Grant Management for OAuth 2.0, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GrantScope()The default constructor with no argument.GrantScope(String scope, String[] resource)A constructor with initial property values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getResource()Get the resource.StringgetScope()Get the space-delimited scopes.GrantScopesetResource(String[] resource)Set the resource.GrantScopesetScope(String scope)Set the space-delimited scopes.
-
-
-
Method Detail
-
getScope
public String getScope()
Get the space-delimited scopes.- Returns:
- The space-delimited scopes.
-
setScope
public GrantScope setScope(String scope)
Set the space-delimited scopes.- Parameters:
scope- The space-delimited scopes.- Returns:
thisobject.
-
getResource
public String[] getResource()
Get the resource.- Returns:
- A list of resource indicators.
- See Also:
- Resource Indicators for OAuth 2.0
-
setResource
public GrantScope setResource(String[] resource)
Set the resource.- Parameters:
resource- A list of resource indicators.- Returns:
thisobject.- See Also:
- Resource Indicators for OAuth 2.0
-
-