Class TokenRequestHandler.Params

    • Constructor Detail

      • Params

        public Params()
    • Method Detail

      • getParameters

        public javax.ws.rs.core.MultivaluedMap<String,​String> getParameters()
        Get the request parameters of the token request.
        Returns:
        The request parameters of the token request.
      • setParameters

        public TokenRequestHandler.Params setParameters​(javax.ws.rs.core.MultivaluedMap<String,​String> parameters)
        Set the request parameters of the token request.
        Parameters:
        parameters - The request parameters of the token request.
        Returns:
        this object.
      • getAuthorization

        public String getAuthorization()
        Get the value of the Authorization header in the token request. A pair of client ID and client secret is embedded there when the client authentication method is client_secret_basic.
        Returns:
        The value of the Authorization header.
      • setAuthorization

        public TokenRequestHandler.Params setAuthorization​(String authorization)
        Set the value of the Authorization header in the token request. A pair of client ID and client secret is embedded there when the client authentication method is client_secret_basic.
        Parameters:
        authorization - The value of the Authorization header.
        Returns:
        this object.
      • getDpop

        public String getDpop()
        Get the DPoP proof JWT (the value of the DPoP HTTP header).

        See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.

        Returns:
        The DPoP proof JWT.
      • setDpop

        public TokenRequestHandler.Params setDpop​(String dpop)
        Set the DPoP proof JWT (the value of the DPoP HTTP header).

        See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.

        Parameters:
        dpop - The DPoP proof JWT.
        Returns:
        this object.
      • getHtm

        public String getHtm()
        Get the HTTP method of the token request.
        Returns:
        The HTTP method of the token request.
      • setHtm

        public TokenRequestHandler.Params setHtm​(String htm)
        Set the HTTP method of the token request.

        The value should be "POST" unless new specifications allowing other HTTP methods at the token endpoint are developed. If this parameter is omitted, "POST" is used as the default value.

        The value passed here will be used to validate the DPoP proof JWT. See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.

        Parameters:
        htm - The HTTP method of the token request.
        Returns:
        this object.
      • getHtu

        public String getHtu()
        Get the URL of the token endpoint.
        Returns:
        The URL of the token endpoint.
      • setHtu

        public TokenRequestHandler.Params setHtu​(String htu)
        Set the URL of the token endpoint.

        If this parameter is omitted, the tokenEndpoint property of Service will be used as the default value.

        The value passed here will be used to validate the DPoP proof JWT. See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.

        Parameters:
        htu - The URL of the token endpoint.
        Returns:
        this object.
      • getClientAttestationPop

        public String getClientAttestationPop()
        Get the value of the OAuth-Client-Attestation-PoP HTTP header.
        Returns:
        The value of the OAuth-Client-Attestation-PoP HTTP header.
        Since:
        2.79, Authlete 3.0
        See Also:
        OAuth 2.0 Attestation-Based Client Authentication