Package com.adobe.granite.oauth.server
Interface Scope
-
- All Known Subinterfaces:
ScopeWithPrivileges
public interface ScopeTheScopeprovides a simple API to handle scopes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription(HttpServletRequest request)Get the description associated with the scopejava.lang.StringgetEndpoint()Get the endpoint associated with the scopejava.lang.StringgetName()Get the scope namejava.lang.StringgetResourcePath(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
-
-