Class AuthorizationServerRulesApi

java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerRulesApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class AuthorizationServerRulesApi extends Object
  • Constructor Details

    • AuthorizationServerRulesApi

      public AuthorizationServerRulesApi()
    • AuthorizationServerRulesApi

      public AuthorizationServerRulesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 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)
      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 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)
      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 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)
      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 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)
      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 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)
      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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<AuthorizationServerPolicyRule>
      Throws:
      ApiException - if fails to make API call
    • 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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      AuthorizationServerPolicyRule
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()