Interface OAuth2ResourceServer


  • @ProviderType
    public interface OAuth2ResourceServer
    The OAuth2ResourceServer provides a simple API to handle scopes and resources of an OAuth Resource Server as defined in http://tools.ietf.org/html/rfc6749
    • 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 corresponding Scope 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