public class ClientsEntity
extends java.lang.Object
This class is not thread-safe.
ManagementAPI
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apiToken |
protected okhttp3.HttpUrl |
baseUrl |
protected okhttp3.OkHttpClient |
client |
Modifier and Type | Method and Description |
---|---|
Request<Client> |
create(Client client)
Create a new Application.
|
Request |
delete(java.lang.String clientId)
Delete an existing Application.
|
Request<Client> |
get(java.lang.String clientId)
Request an Application.
|
Request<java.util.List<Client>> |
list()
Deprecated.
Calling this method will soon stop returning the complete list of clients and instead, limit to the first page of results.
Please use
list(ClientFilter) instead as it provides pagination support. |
Request<ClientsPage> |
list(ClientFilter filter)
Request all the Applications.
|
Request<Client> |
rotateSecret(java.lang.String clientId)
Rotates an Application's client secret.
|
Request<Client> |
update(java.lang.String clientId,
Client client)
Update an existing Application.
|
protected final okhttp3.OkHttpClient client
protected final okhttp3.HttpUrl baseUrl
protected final java.lang.String apiToken
@Deprecated public Request<java.util.List<Client>> list()
list(ClientFilter)
instead as it provides pagination support.public Request<ClientsPage> list(ClientFilter filter)
filter
- the filter to use. Can be null.public Request<Client> get(java.lang.String clientId)
clientId
- the application's client id.public Request<Client> create(Client client)
client
- the application data to set.public Request delete(java.lang.String clientId)
clientId
- the application's client id.public Request<Client> update(java.lang.String clientId, Client client)
clientId
- the application's client id.client
- the application data to set.public Request<Client> rotateSecret(java.lang.String clientId)
clientId
- the application's client id.