Package com.okta.sdk.resource.api
Class AuthorizationServerRulesApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerRulesApi
@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 AuthorizationServerRulesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) Activate a policy rule Activates an authorization server policy rulevoidactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) Activate a policy rule Activates an authorization server policy rulecreateAuthorizationServerPolicyRule(String authServerId, String policyId, AuthorizationServerPolicyRuleRequest policyRule) Create a policy rule Creates a policy rule for the specified Custom Authorization Server and PolicycreateAuthorizationServerPolicyRule(String authServerId, String policyId, AuthorizationServerPolicyRuleRequest policyRule, Map<String, String> additionalHeaders) Create a policy rule Creates a policy rule for the specified Custom Authorization Server and PolicyvoiddeactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) Deactivate a policy rule Deactivates an authorization server policy rulevoiddeactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) Deactivate a policy rule Deactivates an authorization server policy rulevoiddeleteAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) Delete a policy rule Deletes a Policy Rule defined in the specified Custom Authorization Server and PolicyvoiddeleteAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) Delete a policy rule Deletes a Policy Rule defined in the specified Custom Authorization Server and PolicygetAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) Retrieve a policy rule Retrieves a policy rule by `ruleId`getAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) Retrieve a policy rule Retrieves a policy rule by `ruleId`protected static com.fasterxml.jackson.databind.ObjectMapperlistAuthorizationServerPolicyRules(String authServerId, String policyId) List all policy rules Lists all policy rules for the specified Custom Authorization Server and PolicylistAuthorizationServerPolicyRules(String authServerId, String policyId, Map<String, String> additionalHeaders) List all policy rules Lists all policy rules for the specified Custom Authorization Server and PolicylistAuthorizationServerPolicyRulesPaged(String authServerId, String policyId) List all policy rules (Paginated) Lists all policy rules for the specified Custom Authorization Server and Policy This method returns a lazy, paginated iterable that automatically handles pagination.listAuthorizationServerPolicyRulesPaged(String authServerId, String policyId, Map<String, String> additionalHeaders) List all policy rules (Paginated with additional headers) Lists all policy rules for the specified Custom Authorization Server and Policy This method returns a lazy, paginated iterable that automatically handles pagination.replaceAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, AuthorizationServerPolicyRuleRequest policyRule) Replace a policy rule Replaces the configuration of the Policy Rule defined in the specified Custom Authorization Server and PolicyreplaceAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, AuthorizationServerPolicyRuleRequest policyRule, Map<String, String> additionalHeaders) Replace a policy rule Replaces the configuration of the Policy Rule defined in the specified Custom Authorization Server and PolicyvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerRulesApi
public AuthorizationServerRulesApi() -
AuthorizationServerRulesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateAuthorizationServerPolicyRule
public void activateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) throws ApiException Activate a policy rule Activates an authorization server policy rule- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)- Throws:
ApiException- if fails to make API call
-
activateAuthorizationServerPolicyRule
public void activateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a policy rule Activates an authorization server policy rule- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
createAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule createAuthorizationServerPolicyRule(String authServerId, String policyId, AuthorizationServerPolicyRuleRequest policyRule) throws ApiException Create a policy rule Creates a policy rule for the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)policyRule- (required)- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
createAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule createAuthorizationServerPolicyRule(String authServerId, String policyId, AuthorizationServerPolicyRuleRequest policyRule, Map<String, String> additionalHeaders) throws ApiExceptionCreate a policy rule Creates a policy rule for the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)policyRule- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
deactivateAuthorizationServerPolicyRule
public void deactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) throws ApiException Deactivate a policy rule Deactivates an authorization server policy rule- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)- Throws:
ApiException- if fails to make API call
-
deactivateAuthorizationServerPolicyRule
public void deactivateAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a policy rule Deactivates an authorization server policy rule- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteAuthorizationServerPolicyRule
public void deleteAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) throws ApiException Delete a policy rule Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)- Throws:
ApiException- if fails to make API call
-
deleteAuthorizationServerPolicyRule
public void deleteAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a policy rule Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule getAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId) throws ApiException Retrieve a policy rule Retrieves a policy rule by `ruleId`- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
getAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule getAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a policy rule Retrieves a policy rule by `ruleId`- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServerPolicyRules
public List<AuthorizationServerPolicyRule> listAuthorizationServerPolicyRules(String authServerId, String policyId) throws ApiException List all policy rules Lists all policy rules for the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)- Returns:
- List<AuthorizationServerPolicyRule>
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServerPolicyRules
public List<AuthorizationServerPolicyRule> listAuthorizationServerPolicyRules(String authServerId, String policyId, Map<String, String> additionalHeaders) throws ApiExceptionList all policy rules Lists all policy rules for the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<AuthorizationServerPolicyRule>
- Throws:
ApiException- if fails to make API call
-
listAuthorizationServerPolicyRulesPaged
public Iterable<AuthorizationServerPolicyRule> listAuthorizationServerPolicyRulesPaged(String authServerId, String policyId) List all policy rules (Paginated) Lists all policy rules for the specified Custom Authorization Server and Policy 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:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)- Returns:
- Iterable<AuthorizationServerPolicyRule> lazy iterable over all pages
-
listAuthorizationServerPolicyRulesPaged
public Iterable<AuthorizationServerPolicyRule> listAuthorizationServerPolicyRulesPaged(String authServerId, String policyId, Map<String, String> additionalHeaders) List all policy rules (Paginated with additional headers) Lists all policy rules for the specified Custom Authorization Server and Policy This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)additionalHeaders- additional headers for this call- Returns:
- Iterable<AuthorizationServerPolicyRule> lazy iterable over all pages
-
replaceAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule replaceAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, AuthorizationServerPolicyRuleRequest policyRule) throws ApiException Replace a policy rule Replaces the configuration of the Policy Rule defined in the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)policyRule- (required)- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
replaceAuthorizationServerPolicyRule
public AuthorizationServerPolicyRule replaceAuthorizationServerPolicyRule(String authServerId, String policyId, String ruleId, AuthorizationServerPolicyRuleRequest policyRule, Map<String, String> additionalHeaders) throws ApiExceptionReplace a policy rule Replaces the configuration of the Policy Rule defined in the specified Custom Authorization Server and Policy- Parameters:
authServerId- `id` of the Authorization Server (required)policyId- `id` of the Policy (required)ruleId- `id` of the policy rule (required)policyRule- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AuthorizationServerPolicyRule
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-