@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class SessionApi extends Object
Constructor and Description |
---|
SessionApi() |
SessionApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
Session |
createSession(CreateSessionRequest createSessionRequest)
Create a Session with session token
Creates a new Session for a user with a valid session token.
|
Session |
createSession(CreateSessionRequest createSessionRequest,
Map<String,String> additionalHeaders)
Create a Session with session token
Creates a new Session for a user with a valid session token.
|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Session |
getSession(String sessionId)
Retrieve a Session
Retrieves information about the Session specified by the given session ID
|
Session |
getSession(String sessionId,
Map<String,String> additionalHeaders)
Retrieve a Session
Retrieves information about the Session specified by the given session ID
|
Session |
refreshSession(String sessionId)
Refresh a Session
Refreshes an existing Session using the `id` for that Session.
|
Session |
refreshSession(String sessionId,
Map<String,String> additionalHeaders)
Refresh a Session
Refreshes an existing Session using the `id` for that Session.
|
void |
revokeSession(String sessionId)
Revoke a Session
Revokes the specified Session
|
void |
revokeSession(String sessionId,
Map<String,String> additionalHeaders)
Revoke a Session
Revokes the specified Session
|
void |
setApiClient(ApiClient apiClient) |
public SessionApi()
public SessionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Session createSession(CreateSessionRequest createSessionRequest) throws ApiException
createSessionRequest
- (required)ApiException
- if fails to make API callpublic Session createSession(CreateSessionRequest createSessionRequest, Map<String,String> additionalHeaders) throws ApiException
createSessionRequest
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Session getSession(String sessionId) throws ApiException
sessionId
- `id` of the Session (required)ApiException
- if fails to make API callpublic Session getSession(String sessionId, Map<String,String> additionalHeaders) throws ApiException
sessionId
- `id` of the Session (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Session refreshSession(String sessionId) throws ApiException
sessionId
- `id` of the Session (required)ApiException
- if fails to make API callpublic Session refreshSession(String sessionId, Map<String,String> additionalHeaders) throws ApiException
sessionId
- `id` of the Session (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeSession(String sessionId) throws ApiException
sessionId
- `id` of the Session (required)ApiException
- if fails to make API callpublic void revokeSession(String sessionId, Map<String,String> additionalHeaders) throws ApiException
sessionId
- `id` of the Session (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.