Class GrantScope

  • All Implemented Interfaces:
    Serializable

    public class GrantScope
    extends Object
    implements Serializable
    Scope representation in a grant.

    This class holds the same information as each entry in the "scopes" array in the response from the Grant Management Endpoint on the grant management action 'query' does.

    Since:
    3.1
    See Also:
    Grant Management for OAuth 2.0, Serialized Form
    • Constructor Detail

      • GrantScope

        public GrantScope()
        The default constructor with no argument.
      • GrantScope

        public GrantScope​(String scope,
                          String[] resource)
        A constructor with initial property values.
        Parameters:
        scope - A space-delimited scopes.
        resource - A list of resource indicators.
    • Method Detail

      • getScope

        public String getScope()
        Get the space-delimited scopes.
        Returns:
        The space-delimited scopes.
      • setScope

        public GrantScope setScope​(String scope)
        Set the space-delimited scopes.
        Parameters:
        scope - The space-delimited scopes.
        Returns:
        this object.