Package com.okta.sdk.resource.api
Class AuthorizationServerPoliciesApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerPoliciesApi
@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 AuthorizationServerPoliciesApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateAuthorizationServerPolicy
(String authServerId, String policyId) Activate a Policy Activates an authorization server policyvoid
activateAuthorizationServerPolicy
(String authServerId, String policyId, Map<String, String> additionalHeaders) Activate a Policy Activates an authorization server policycreateAuthorizationServerPolicy
(String authServerId, AuthorizationServerPolicy policy) Create a Policy Creates a policycreateAuthorizationServerPolicy
(String authServerId, AuthorizationServerPolicy policy, Map<String, String> additionalHeaders) Create a Policy Creates a policyvoid
deactivateAuthorizationServerPolicy
(String authServerId, String policyId) Deactivate a Policy Deactivates an authorization server policyvoid
deactivateAuthorizationServerPolicy
(String authServerId, String policyId, Map<String, String> additionalHeaders) Deactivate a Policy Deactivates an authorization server policyvoid
deleteAuthorizationServerPolicy
(String authServerId, String policyId) Delete a Policy Deletes a policyvoid
deleteAuthorizationServerPolicy
(String authServerId, String policyId, Map<String, String> additionalHeaders) Delete a Policy Deletes a policygetAuthorizationServerPolicy
(String authServerId, String policyId) Retrieve a Policy Retrieves a policygetAuthorizationServerPolicy
(String authServerId, String policyId, Map<String, String> additionalHeaders) Retrieve a Policy Retrieves a policyprotected static com.fasterxml.jackson.databind.ObjectMapper
listAuthorizationServerPolicies
(String authServerId) List all Policies Lists all policieslistAuthorizationServerPolicies
(String authServerId, Map<String, String> additionalHeaders) List all Policies Lists all policiesreplaceAuthorizationServerPolicy
(String authServerId, String policyId, AuthorizationServerPolicy policy) Replace a Policy Replaces a policyreplaceAuthorizationServerPolicy
(String authServerId, String policyId, AuthorizationServerPolicy policy, Map<String, String> additionalHeaders) Replace a Policy Replaces a policyvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerPoliciesApi
public AuthorizationServerPoliciesApi() -
AuthorizationServerPoliciesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateAuthorizationServerPolicy
public void activateAuthorizationServerPolicy(String authServerId, String policyId) throws ApiException Activate a Policy Activates an authorization server policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)- Throws:
ApiException
- if fails to make API call
-
activateAuthorizationServerPolicy
public void activateAuthorizationServerPolicy(String authServerId, String policyId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a Policy Activates an authorization server policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
createAuthorizationServerPolicy
public AuthorizationServerPolicy createAuthorizationServerPolicy(String authServerId, AuthorizationServerPolicy policy) throws ApiException Create a Policy Creates a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policy
- (required)- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
createAuthorizationServerPolicy
public AuthorizationServerPolicy createAuthorizationServerPolicy(String authServerId, AuthorizationServerPolicy policy, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Policy Creates a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policy
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
deactivateAuthorizationServerPolicy
public void deactivateAuthorizationServerPolicy(String authServerId, String policyId) throws ApiException Deactivate a Policy Deactivates an authorization server policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)- Throws:
ApiException
- if fails to make API call
-
deactivateAuthorizationServerPolicy
public void deactivateAuthorizationServerPolicy(String authServerId, String policyId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a Policy Deactivates an authorization server policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteAuthorizationServerPolicy
public void deleteAuthorizationServerPolicy(String authServerId, String policyId) throws ApiException Delete a Policy Deletes a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)- Throws:
ApiException
- if fails to make API call
-
deleteAuthorizationServerPolicy
public void deleteAuthorizationServerPolicy(String authServerId, String policyId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Policy Deletes a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getAuthorizationServerPolicy
public AuthorizationServerPolicy getAuthorizationServerPolicy(String authServerId, String policyId) throws ApiException Retrieve a Policy Retrieves a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
getAuthorizationServerPolicy
public AuthorizationServerPolicy getAuthorizationServerPolicy(String authServerId, String policyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Policy Retrieves a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this call- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
listAuthorizationServerPolicies
public List<AuthorizationServerPolicy> listAuthorizationServerPolicies(String authServerId) throws ApiException List all Policies Lists all policies- Parameters:
authServerId
- `id` of the Authorization Server (required)- Returns:
- List<AuthorizationServerPolicy>
- Throws:
ApiException
- if fails to make API call
-
listAuthorizationServerPolicies
public List<AuthorizationServerPolicy> listAuthorizationServerPolicies(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionList all Policies Lists all policies- Parameters:
authServerId
- `id` of the Authorization Server (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<AuthorizationServerPolicy>
- Throws:
ApiException
- if fails to make API call
-
replaceAuthorizationServerPolicy
public AuthorizationServerPolicy replaceAuthorizationServerPolicy(String authServerId, String policyId, AuthorizationServerPolicy policy) throws ApiException Replace a Policy Replaces a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)policy
- (required)- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
replaceAuthorizationServerPolicy
public AuthorizationServerPolicy replaceAuthorizationServerPolicy(String authServerId, String policyId, AuthorizationServerPolicy policy, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Policy Replaces a policy- Parameters:
authServerId
- `id` of the Authorization Server (required)policyId
- `id` of the Policy (required)policy
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- AuthorizationServerPolicy
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-