Package com.auth0.client.mgmt
Class SessionsEntity
java.lang.Object
com.auth0.client.mgmt.SessionsEntity
Class that provides an implementation of the Sessions methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Sessions
This class is not thread-safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptionDelete the session for a given session ID.Request the session for a given session ID.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
get
Request the session for a given session ID. A token with scoperead:sessionsis needed. See https://auth0.com/docs/api/management/v2/sessions/get-session- Parameters:
sessionId- the session ID.- Returns:
- a Request to execute.
-
delete
Delete the session for a given session ID. A token with scopedelete:sessionsis needed. See https://auth0.com/docs/api/management/v2/sessions/delete-session- Parameters:
sessionId- the session ID.- Returns:
- a Request to execute.
-
voidRequest
protected Request<Void> voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer) -
request
protected <T> Request<T> request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)
-