Class CustomDomainApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T16:47:02.065887-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class CustomDomainApi extends Object
  • Constructor Details

    • CustomDomainApi

      public CustomDomainApi()
    • CustomDomainApi

      public CustomDomainApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createCustomDomain

      public DomainResponse createCustomDomain(DomainRequest domain) throws ApiException
      Create a Custom Domain Creates your custom domain
      Parameters:
      domain - (required)
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • createCustomDomain

      public DomainResponse createCustomDomain(DomainRequest domain, Map<String,String> additionalHeaders) throws ApiException
      Create a Custom Domain Creates your custom domain
      Parameters:
      domain - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • deleteCustomDomain

      public void deleteCustomDomain(String domainId) throws ApiException
      Delete a Custom Domain Deletes a custom domain by `domainId`
      Parameters:
      domainId - `id` of the Domain (required)
      Throws:
      ApiException - if fails to make API call
    • deleteCustomDomain

      public void deleteCustomDomain(String domainId, Map<String,String> additionalHeaders) throws ApiException
      Delete a Custom Domain Deletes a custom domain by `domainId`
      Parameters:
      domainId - `id` of the Domain (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getCustomDomain

      public DomainResponse getCustomDomain(String domainId) throws ApiException
      Retrieve a Custom Domain Retrieves a custom domain by `domainId`
      Parameters:
      domainId - `id` of the Domain (required)
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • getCustomDomain

      public DomainResponse getCustomDomain(String domainId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Custom Domain Retrieves a custom domain by `domainId`
      Parameters:
      domainId - `id` of the Domain (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • listCustomDomains

      public DomainListResponse listCustomDomains() throws ApiException
      List all Custom Domains Lists all verified custom domains for the org
      Returns:
      DomainListResponse
      Throws:
      ApiException - if fails to make API call
    • listCustomDomains

      public DomainListResponse listCustomDomains(Map<String,String> additionalHeaders) throws ApiException
      List all Custom Domains Lists all verified custom domains for the org
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      DomainListResponse
      Throws:
      ApiException - if fails to make API call
    • replaceCustomDomain

      public DomainResponse replaceCustomDomain(String domainId, UpdateDomain updateDomain) throws ApiException
      Replace a Custom Domain's Brand Replaces a custom domain's brand
      Parameters:
      domainId - `id` of the Domain (required)
      updateDomain - (required)
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • replaceCustomDomain

      public DomainResponse replaceCustomDomain(String domainId, UpdateDomain updateDomain, Map<String,String> additionalHeaders) throws ApiException
      Replace a Custom Domain's Brand Replaces a custom domain's brand
      Parameters:
      domainId - `id` of the Domain (required)
      updateDomain - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • upsertCertificate

      public void upsertCertificate(String domainId, DomainCertificate certificate) throws ApiException
      Upsert the Custom Domain's Certificate Upserts (creates or renews) the `MANUAL` certificate for the custom domain. If the `certificateSourceType` in the domain is `OKTA_MANAGED`, it becomes `MANUAL` and Okta no longer manages and renews certificates for this domain since a user-managed certificate has been provided.
      Parameters:
      domainId - `id` of the Domain (required)
      certificate - (required)
      Throws:
      ApiException - if fails to make API call
    • upsertCertificate

      public void upsertCertificate(String domainId, DomainCertificate certificate, Map<String,String> additionalHeaders) throws ApiException
      Upsert the Custom Domain's Certificate Upserts (creates or renews) the `MANUAL` certificate for the custom domain. If the `certificateSourceType` in the domain is `OKTA_MANAGED`, it becomes `MANUAL` and Okta no longer manages and renews certificates for this domain since a user-managed certificate has been provided.
      Parameters:
      domainId - `id` of the Domain (required)
      certificate - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • verifyDomain

      public DomainResponse verifyDomain(String domainId) throws ApiException
      Verify a Custom Domain Verifies the custom domain and validity of DNS records by `domainId`. Furthermore, if the `certificateSourceType` in the domain is `OKTA_MANAGED`, then an attempt is made to obtain and install a certificate. After a certificate is obtained and installed by Okta, Okta manages the certificate including certificate renewal.
      Parameters:
      domainId - `id` of the Domain (required)
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • verifyDomain

      public DomainResponse verifyDomain(String domainId, Map<String,String> additionalHeaders) throws ApiException
      Verify a Custom Domain Verifies the custom domain and validity of DNS records by `domainId`. Furthermore, if the `certificateSourceType` in the domain is `OKTA_MANAGED`, then an attempt is made to obtain and install a certificate. After a certificate is obtained and installed by Okta, Okta manages the certificate including certificate renewal.
      Parameters:
      domainId - `id` of the Domain (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      DomainResponse
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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