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 java.lang.String
getDescription(HttpServletRequest request)
Get the description associated with the scopejava.lang.String
getEndpoint()
Get the endpoint associated with the scopejava.lang.String
getName()
Get the scope namejava.lang.String
getResourcePath(User user)
Get the resource path associated with the scope
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the scope name- Returns:
- the scope name
-
getResourcePath
java.lang.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
java.lang.String getEndpoint()
Get the endpoint associated with the scope- Returns:
- the endpoint associated to the scope
-
getDescription
java.lang.String getDescription(HttpServletRequest request)
Get the description associated with the scope- Parameters:
request
- The HttpServletRequest request- Returns:
- the scope description
-
-