Class ClientRegistrationRequest

  • All Implemented Interfaces:
    Serializable

    public class ClientRegistrationRequest
    extends Object
    implements Serializable
    Request to Authlete's /api/client/registration/ API.

    The API is used to implement a client registration endpoint that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).

    Since:
    2.22
    See Also:
    Serialized Form
    • Constructor Detail

      • ClientRegistrationRequest

        public ClientRegistrationRequest()
    • Method Detail

      • getJson

        public String getJson()
        Get client metadata in JSON format that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).
        Returns:
        Client metadata in JSON format.
        Since:
        2.39
      • setJson

        public ClientRegistrationRequest setJson​(String metadata)
        Set client metadata in JSON format that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).
        Parameters:
        metadata - Client metadata in JSON format.
        Returns:
        this object.
        Since:
        2.39
      • getToken

        public String getToken()
        Get the client registration access token which was passed with this update request.
        Returns:
        Client registration access token.
        Since:
        2.39
      • setToken

        public ClientRegistrationRequest setToken​(String token)
        Set the client registration access token which was passed with this update request.
        Parameters:
        token - Client registration access token.
        Returns:
        this object.
        Since:
        2.39
      • getClientId

        public String getClientId()
        Get the client's ID. This is usually parsed from the URL of the management endpoint at the endpoint implementation.
        Returns:
        Client ID.
        Since:
        2.39
      • setClientId

        public ClientRegistrationRequest setClientId​(String clientId)
        Set the client's ID. This is usually parsed from the URL of the management endpoint at the endpoint implementation.
        Parameters:
        clientId - Client ID.
        Returns:
        this object.
        Since:
        2.39