Class SessionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
createSession
(Class<?> T, CreateSessionRequest createSessionRequest) Create a Session with Session Token Creates a new session for a user with a valid session token.createSession
(CreateSessionRequest createSessionRequest) Create a Session with Session Token Creates a new session for a user with a valid session token.org.springframework.http.ResponseEntity<Session>
createSessionWithHttpInfo
(CreateSessionRequest createSessionRequest) Create a Session with Session Token Creates a new session for a user with a valid session token.createSessionWithPaginationInfo
(CreateSessionRequest createSessionRequest) Create a Session with Session Token Creates a new session for a user with a valid session token.getSession
(String sessionId) Retrieve a Session Retrieves the details about a sessionorg.springframework.http.ResponseEntity<Session>
getSessionWithHttpInfo
(String sessionId) Retrieve a Session Retrieves the details about a sessiongetSessionWithPaginationInfo
(String sessionId) Retrieve a Session Retrieves the details about a sessionrefreshSession
(String sessionId) Refresh a Session Refresh a sessionorg.springframework.http.ResponseEntity<Session>
refreshSessionWithHttpInfo
(String sessionId) Refresh a Session Refresh a sessionrefreshSessionWithPaginationInfo
(String sessionId) Refresh a Session Refresh a sessionvoid
revokeSession
(String sessionId) Revoke a Session Revokes a sessionorg.springframework.http.ResponseEntity<Void>
revokeSessionWithHttpInfo
(String sessionId) Revoke a Session Revokes a sessionvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
SessionApi
public SessionApi() -
SessionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createSession
public Session createSession(CreateSessionRequest createSessionRequest) throws org.springframework.web.client.RestClientException Create a Session with Session Token Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
createSessionRequest
- (required)- Returns:
- Session
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSession
public <T> T createSession(Class<?> T, CreateSessionRequest createSessionRequest) throws org.springframework.web.client.RestClientException Create a Session with Session Token Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typecreateSessionRequest
- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSessionWithHttpInfo
public org.springframework.http.ResponseEntity<Session> createSessionWithHttpInfo(CreateSessionRequest createSessionRequest) throws org.springframework.web.client.RestClientException Create a Session with Session Token Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
createSessionRequest
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSessionWithPaginationInfo
public PagedList createSessionWithPaginationInfo(CreateSessionRequest createSessionRequest) throws org.springframework.web.client.RestClientException Create a Session with Session Token Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
createSessionRequest
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSession
public Session getSession(String sessionId) throws org.springframework.web.client.RestClientException Retrieve a Session Retrieves the details about a session200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- Session
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSessionWithHttpInfo
public org.springframework.http.ResponseEntity<Session> getSessionWithHttpInfo(String sessionId) throws org.springframework.web.client.RestClientException Retrieve a Session Retrieves the details about a session200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSessionWithPaginationInfo
public PagedList getSessionWithPaginationInfo(String sessionId) throws org.springframework.web.client.RestClientException Retrieve a Session Retrieves the details about a session200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
refreshSession
public Session refreshSession(String sessionId) throws org.springframework.web.client.RestClientException Refresh a Session Refresh a session200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- Session
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
refreshSessionWithHttpInfo
public org.springframework.http.ResponseEntity<Session> refreshSessionWithHttpInfo(String sessionId) throws org.springframework.web.client.RestClientException Refresh a Session Refresh a session200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
refreshSessionWithPaginationInfo
public PagedList refreshSessionWithPaginationInfo(String sessionId) throws org.springframework.web.client.RestClientException Refresh a Session Refresh a session200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- ResponseEntity<Session>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeSession
public void revokeSession(String sessionId) throws org.springframework.web.client.RestClientException Revoke a Session Revokes a session204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeSessionWithHttpInfo
public org.springframework.http.ResponseEntity<Void> revokeSessionWithHttpInfo(String sessionId) throws org.springframework.web.client.RestClientException Revoke a Session Revokes a session204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
sessionId
- (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-