Package com.adobe.granite.oauth.server
Interface Scope
-
- All Known Subinterfaces:
ScopeWithPrivileges
public interface Scope
TheScope
provides a simple API to handle scopes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription(HttpServletRequest request)
Get the description associated with the scopeString
getEndpoint()
Get the endpoint associated with the scopeString
getName()
Get the scope nameString
getResourcePath(User user)
Get the resource path associated with the scope
-
-
-
Method Detail
-
getName
String getName()
Get the scope name- Returns:
- the scope name
-
getResourcePath
String getResourcePath(User user)
Get the resource path associated with the scope- Parameters:
user
- The authenticated user- Returns:
- The resource path associated to the scope
-
getEndpoint
String getEndpoint()
Get the endpoint associated with the scope- Returns:
- the endpoint associated to the scope
-
getDescription
String getDescription(HttpServletRequest request)
Get the description associated with the scope- Parameters:
request
- The HttpServletRequest request- Returns:
- the scope description
-
-