Interface AccessTokenGrantRequestExtractor


public interface AccessTokenGrantRequestExtractor
Since:
6.0.0
  • Method Details

    • extract

      AccessTokenRequestContext extract(org.pac4j.core.context.WebContext webContext) throws Throwable
      Extract access token into a request data holder.
      Parameters:
      webContext - the web context
      Returns:
      the access token request data holder
      Throws:
      Throwable - the throwable
    • supports

      boolean supports(org.pac4j.core.context.WebContext context)
      Supports grant type?
      Parameters:
      context - the context
      Returns:
      true /false
    • getGrantType

      OAuth20GrantTypes getGrantType()
      Gets grant type.
      Returns:
      the grant type
    • getResponseType

      OAuth20ResponseTypes getResponseType()
      Gets response type.
      Returns:
      the grant type
    • requestMustBeAuthenticated

      default boolean requestMustBeAuthenticated()
      Request must be authenticated.
      Returns:
      true/false