Class GrantTypeHandler

    • Constructor Detail

      • GrantTypeHandler

        protected GrantTypeHandler​(String grantType,
                                   String clientId,
                                   Collection<String> scope)
        Initialises the grant type handler with the given grant type name and client id.
        Parameters:
        grantType - the grant type name such as "client_credentials".
        clientId - the client id. May be null.
        scope - the scope to add to the request. May not be null. Represents the scope of the authorization grant being requested, as per RFC 6749.
      • GrantTypeHandler

        protected GrantTypeHandler​(String grantType,
                                   String clientId)
        Initialises the grant type handler with the given grant type name and client id.
        Parameters:
        grantType - the grant type name such as "client_credentials".
        clientId - the client id. May be null.
    • Method Detail

      • getGrantType

        public String getGrantType()
        The name of the grant type implemented by this handler.
        Returns:
        the name of the grant type.
      • getClientId

        public String getClientId()
        The client id of the client using this grant type.
        Returns:
        the client id.