Package com.authlete.common.dto
Class ClientRegistrationRequest
- java.lang.Object
-
- com.authlete.common.dto.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 Summary
Constructors Constructor Description ClientRegistrationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientId()
Get the client's ID.String
getJson()
Get client metadata in JSON format that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).String
getToken()
Get the client registration access token which was passed with this update request.ClientRegistrationRequest
setClientId(String clientId)
Set the client's ID.ClientRegistrationRequest
setJson(String metadata)
Set client metadata in JSON format that complies with RFC 7591 (OAuth 2.0 Dynamic Client Registration Protocol).ClientRegistrationRequest
setToken(String token)
Set the client registration access token which was passed with this update request.
-
-
-
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
-
-