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="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class AuthorizationServerApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateAuthorizationServer
(String authServerId) Activate an Authorization Server Activates an authorization servervoid
activateAuthorizationServer
(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 servervoid
deactivateAuthorizationServer
(String authServerId) Deactivate an Authorization Server Deactivates an authorization servervoid
deactivateAuthorizationServer
(String authServerId, Map<String, String> additionalHeaders) Deactivate an Authorization Server Deactivates an authorization servervoid
deleteAuthorizationServer
(String authServerId) Delete an Authorization Server Deletes an authorization servervoid
deleteAuthorizationServer
(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.ObjectMapper
listAuthorizationServers
(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 orgreplaceAuthorizationServer
(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 servervoid
setApiClient
(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
-
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()
-