Enum PolicyType

java.lang.Object
java.lang.Enum<PolicyType>
com.okta.sdk.resource.model.PolicyType
All Implemented Interfaces:
Serializable, Comparable<PolicyType>, java.lang.constant.Constable

public enum PolicyType extends Enum<PolicyType>
All Okta orgs contain only one IdP Discovery Policy with an immutable default Rule routing to your org's sign-in page. Creating or replacing a policy with the `IDP_DISCOVERY` type isn't supported. The following policy types are available with Identity Engine: `ACCESS_POLICY`, `PROFILE_ENROLLMENT`, `POST_AUTH_SESSION`, and `ENTITY_RISK`. The `POST_AUTH_SESSION`, and `ENTITY_RISK` policy types are in <x-lifecycle class=\"ea\"></x-lifecycle>. Contact your Okta account team to enable these features.
  • Enum Constant Details

    • ACCESS_POLICY

      public static final PolicyType ACCESS_POLICY
    • ENTITY_RISK

      public static final PolicyType ENTITY_RISK
    • IDP_DISCOVERY

      public static final PolicyType IDP_DISCOVERY
    • MFA_ENROLL

      public static final PolicyType MFA_ENROLL
    • OKTA_SIGN_ON

      public static final PolicyType OKTA_SIGN_ON
    • PASSWORD

      public static final PolicyType PASSWORD
    • POST_AUTH_SESSION

      public static final PolicyType POST_AUTH_SESSION
    • PROFILE_ENROLLMENT

      public static final PolicyType PROFILE_ENROLLMENT
    • RESOURCE_ACCESS

      public static final PolicyType RESOURCE_ACCESS
    • UNKNOWN_DEFAULT_OPEN_API

      public static final PolicyType UNKNOWN_DEFAULT_OPEN_API
  • Method Details

    • values

      public static PolicyType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PolicyType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PolicyType>
    • fromValue

      public static PolicyType fromValue(String value)
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string