Class RefreshAccessTokenGrantRequest


  • public class RefreshAccessTokenGrantRequest
    extends GrantRequest
    The RefreshAccessTokenGrantRequest class holds the information for a Refresh Access Token Grant request.

    See Refreshing an Access Token

    Author:
    Marcus Portmann
    • Field Detail

      • REFRESH_TOKEN_PARAMETER

        public static final String REFRESH_TOKEN_PARAMETER
        The name of the refresh token parameter.

        This parameter is REQUIRED.

        See Also:
        Constant Field Values
    • Constructor Detail

      • RefreshAccessTokenGrantRequest

        public RefreshAccessTokenGrantRequest​(Map<String,​String> parameters)
        Constructs a new RefreshAccessTokenGrantRequest.
        Parameters:
        parameters - the request parameters
    • Method Detail

      • isValid

        public static boolean isValid​(Map<String,​String> parameters)
        Check whether the required information for the Resource Owner Password Credentials Grant is provided as part of the HTTP servlet request.
        Parameters:
        parameters - the request parameters
        Returns:
        true if the HTTP servlet request contains the required information for the Resource Owner Password Credentials Grant or false otherwise
      • getRefreshToken

        public String getRefreshToken()
        Returns the refresh token.
        Returns:
        the refresh token