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 Details

    • SessionApi

      public SessionApi()
    • SessionApi

      public SessionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getSession

      public Session getSession(String sessionId) throws ApiException
      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 ApiException
      Retrieve 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

      public Session refreshSession(String sessionId) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Session
      Throws:
      ApiException - if fails to make API call
    • revokeSession

      public void revokeSession(String sessionId) throws ApiException
      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 ApiException
      Revoke 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()