Package com.auth0.client.mgmt
Class ResourceServerEntity
java.lang.Object
com.auth0.client.mgmt.ResourceServerEntity
Class that provides an implementation of the Resource Server methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Resource_Servers
This class is not thread-safe.
- See Also:
ManagementAPI
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ResourceServer resourceServer)
Cretes request for creation resource server See API documentationCreates request for delete resource server by it's ID See API documentationCretes request for fetching single resource server by it's ID.list()
Deprecated.Calling this method will soon stop returning the complete list of resource servers and instead, limit to the first page of results.list(ResourceServersFilter filter)
Creates request to fetch all resource servers.update(String resourceServerId, ResourceServer resourceServer)
Creates request for partial update of resource server.
-
Field Details
-
client
protected final okhttp3.OkHttpClient client -
baseUrl
protected final okhttp3.HttpUrl baseUrl -
apiToken
-
-
Method Details
-
list
Creates request to fetch all resource servers. See API documentation- Parameters:
filter
- the filter to use. Can be null.- Returns:
- request to execute
-
list
Deprecated.Calling this method will soon stop returning the complete list of resource servers and instead, limit to the first page of results. Please uselist(ResourceServersFilter)
instead as it provides pagination support.Creates request to fetch all resource servers. See API documentation- Returns:
- request to execute
-
get
Cretes request for fetching single resource server by it's ID. See API documentation- Parameters:
resourceServerIdOrIdentifier
-ResourceServer.id
orResourceServer.identifier
(audience) field- Returns:
- request to execute
-
create
Cretes request for creation resource server See API documentation- Parameters:
resourceServer
- resource server body- Returns:
- request to execute
-
delete
Creates request for delete resource server by it's ID See API documentation- Parameters:
resourceServerId
-ResourceServer.id
field- Returns:
- request to execute
-
update
Creates request for partial update of resource server. All null fields stay not changed. See API documentation- Parameters:
resourceServerId
-ResourceServer.id
fieldresourceServer
-ResourceServer
body- Returns:
- request to execute
-