Package com.okta.sdk.resource.api
Class SessionApi
java.lang.Object
com.okta.sdk.resource.api.SessionApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class SessionApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMappergetSession(String sessionId) Retrieve a session Retrieves information about the Session specified by the given session IDgetSession(String sessionId, Map<String, String> additionalHeaders) Retrieve a session Retrieves information about the Session specified by the given session IDrefreshSession(String sessionId) Refresh a session Refreshes an existing Session using the `id` for that Session.refreshSession(String sessionId, Map<String, String> additionalHeaders) Refresh a session Refreshes an existing Session using the `id` for that Session.voidrevokeSession(String sessionId) Revoke a session Revokes the specified SessionvoidrevokeSession(String sessionId, Map<String, String> additionalHeaders) Revoke a session Revokes the specified SessionvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
SessionApi
public SessionApi() -
SessionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getSession
Retrieve a session Retrieves information about the Session specified by the given session ID- Parameters:
sessionId- `id` of the Session (required)- Returns:
- Session
- Throws:
ApiException- if fails to make API call
-
getSession
public Session getSession(String sessionId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a session Retrieves information about the Session specified by the given session ID- Parameters:
sessionId- `id` of the Session (required)additionalHeaders- additionalHeaders for this call- Returns:
- Session
- Throws:
ApiException- if fails to make API call
-
refreshSession
Refresh a session Refreshes an existing Session using the `id` for that Session. A successful response contains the refreshed Session with an updated `expiresAt` timestamp.- Parameters:
sessionId- `id` of the Session (required)- Returns:
- Session
- Throws:
ApiException- if fails to make API call
-
refreshSession
public Session refreshSession(String sessionId, Map<String, String> additionalHeaders) throws ApiExceptionRefresh a session Refreshes an existing Session using the `id` for that Session. A successful response contains the refreshed Session with an updated `expiresAt` timestamp.- Parameters:
sessionId- `id` of the Session (required)additionalHeaders- additionalHeaders for this call- Returns:
- Session
- Throws:
ApiException- if fails to make API call
-
revokeSession
Revoke a session Revokes the specified Session- Parameters:
sessionId- `id` of the Session (required)- Throws:
ApiException- if fails to make API call
-
revokeSession
public void revokeSession(String sessionId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke a session Revokes the specified Session- Parameters:
sessionId- `id` of the Session (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-