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 Details

    • AuthorizationServerPoliciesApi

      public AuthorizationServerPoliciesApi()
    • AuthorizationServerPoliciesApi

      public AuthorizationServerPoliciesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 ApiException
      Activate 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 ApiException
      Create 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 ApiException
      Deactivate 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 ApiException
      Delete 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 ApiException
      Retrieve 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 ApiException
      List 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 ApiException
      Replace 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()