Package com.okta.sdk.resource.api
Class AuthorizationServerApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerApi
@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 AuthorizationServerApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateAuthorizationServer(String authServerId) Activate an authorization server Activates an authorization servervoidactivateAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) Activate an authorization server Activates an authorization servercreateAuthorizationServer(AuthorizationServer authorizationServer) Create an authorization server Creates an authorization servercreateAuthorizationServer(AuthorizationServer authorizationServer, Map<String, String> additionalHeaders) Create an authorization server Creates an authorization servervoiddeactivateAuthorizationServer(String authServerId) Deactivate an authorization server Deactivates an authorization servervoiddeactivateAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) Deactivate an authorization server Deactivates an authorization servervoiddeleteAuthorizationServer(String authServerId) Delete an authorization server Deletes an authorization servervoiddeleteAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) Delete an authorization server Deletes an authorization servergetAuthorizationServer(String authServerId) Retrieve an authorization server Retrieves an authorization servergetAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) Retrieve an authorization server Retrieves an authorization serverprotected static com.fasterxml.jackson.databind.ObjectMapperlistAuthorizationServers(String q, Integer limit, String after) List all authorization servers Lists all custom authorization servers in the orglistAuthorizationServers(String q, Integer limit, String after, Map<String, String> additionalHeaders) List all authorization servers Lists all custom authorization servers in the orglistAuthorizationServersPaged(String q, Integer limit, String after) List all authorization servers (Paginated) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination.listAuthorizationServersPaged(String q, Integer limit, String after, Map<String, String> additionalHeaders) List all authorization servers (Paginated with additional headers) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination.replaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer) Replace an authorization server Replaces an authorization serverreplaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer, Map<String, String> additionalHeaders) Replace an authorization server Replaces an authorization servervoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerApi
public AuthorizationServerApi() -
AuthorizationServerApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateAuthorizationServer
Activate an authorization server Activates an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)- Throws:
ApiException- if fails to make API call
-
activateAuthorizationServer
public void activateAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionActivate an authorization server Activates an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
createAuthorizationServer
public AuthorizationServer createAuthorizationServer(AuthorizationServer authorizationServer) throws ApiException Create an authorization server Creates an authorization server- Parameters:
authorizationServer- (required)- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
createAuthorizationServer
public AuthorizationServer createAuthorizationServer(AuthorizationServer authorizationServer, Map<String, String> additionalHeaders) throws ApiExceptionCreate an authorization server Creates an authorization server- Parameters:
authorizationServer- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
deactivateAuthorizationServer
Deactivate an authorization server Deactivates an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)- Throws:
ApiException- if fails to make API call
-
deactivateAuthorizationServer
public void deactivateAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate an authorization server Deactivates an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteAuthorizationServer
Delete an authorization server Deletes an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)- Throws:
ApiException- if fails to make API call
-
deleteAuthorizationServer
public void deleteAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an authorization server Deletes an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getAuthorizationServer
Retrieve an authorization server Retrieves an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
getAuthorizationServer
public AuthorizationServer getAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an authorization server Retrieves an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServers
public List<AuthorizationServer> listAuthorizationServers(String q, Integer limit, String after) throws ApiException List all authorization servers Lists all custom authorization servers in the org- Parameters:
q- Searches the `name` and `audiences` of authorization servers for matching values (optional)limit- Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)after- Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)- Returns:
- List<AuthorizationServer>
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServers
public List<AuthorizationServer> listAuthorizationServers(String q, Integer limit, String after, Map<String, String> additionalHeaders) throws ApiExceptionList all authorization servers Lists all custom authorization servers in the org- Parameters:
q- Searches the `name` and `audiences` of authorization servers for matching values (optional)limit- Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)after- Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- List<AuthorizationServer>
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServersPaged
public Iterable<AuthorizationServer> listAuthorizationServersPaged(String q, Integer limit, String after) List all authorization servers (Paginated) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
q- Searches the `name` and `audiences` of authorization servers for matching values (optional)limit- Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)after- Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)- Returns:
- Iterable<AuthorizationServer> lazy iterable over all pages
-
listAuthorizationServersPaged
public Iterable<AuthorizationServer> listAuthorizationServersPaged(String q, Integer limit, String after, Map<String, String> additionalHeaders) List all authorization servers (Paginated with additional headers) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
q- Searches the `name` and `audiences` of authorization servers for matching values (optional)limit- Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)after- Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)additionalHeaders- additional headers for this call- Returns:
- Iterable<AuthorizationServer> lazy iterable over all pages
-
replaceAuthorizationServer
public AuthorizationServer replaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer) throws ApiException Replace an authorization server Replaces an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)authorizationServer- (required)- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
replaceAuthorizationServer
public AuthorizationServer replaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer, Map<String, String> additionalHeaders) throws ApiExceptionReplace an authorization server Replaces an authorization server- Parameters:
authServerId- `id` of the Authorization Server (required)authorizationServer- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServer
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-