Package com.adobe.granite.oauth.server
Interface OAuth2ResourceServer
-
@ProviderType public interface OAuth2ResourceServer
TheOAuth2ResourceServer
provides a simple API to handle scopes and resources of an OAuth Resource Server as defined in http://tools.ietf.org/html/rfc6749
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,Scope>
getAllowedScopes()
Get a Map of the scopes allowed by an OAuth resource server.Scope
getScope(java.lang.String name)
Get an instance of a Scope defined by the scope name.
-
-
-
Method Detail
-
getAllowedScopes
java.util.Map<java.lang.String,Scope> getAllowedScopes()
Get a Map of the scopes allowed by an OAuth resource server. The map entry key is the scope name and the map entry value is the correspondingScope
instance.- Returns:
- The Map of the scopes allowed by an OAuth resource server
-
getScope
Scope getScope(java.lang.String name)
Get an instance of a Scope defined by the scope name.- Parameters:
name
- The name of the Scope- Returns:
- An instance of Scope
-
-