Class PolicySubject

java.lang.Object
com.okta.sdk.resource.model.PolicySubject
All Implemented Interfaces:
Serializable

@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 PolicySubject extends Object implements Serializable
Specifies the behavior for establishing, validating, and matching a username for an IdP User
See Also:
  • Field Details

  • Constructor Details

    • PolicySubject

      public PolicySubject()
  • Method Details

    • filter

      public PolicySubject filter(String filter)
    • getFilter

      @Nullable public String getFilter()
      Optional [regular expression pattern](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions) used to filter untrusted IdP usernames. * As a best security practice, you should define a regular expression pattern to filter untrusted IdP usernames. This is especially important if multiple IdPs are connected to your org. The filter prevents an IdP from issuing an assertion for any User, including partners or directory Users in your Okta org. * For example, the filter pattern `(\\S+@example\\.com)` allows only Users that have an `@example.com` username suffix. It rejects assertions that have any other suffix such as `@corp.example.com` or `@partner.com`. * Only `SAML2` and `OIDC` IdP providers support the `filter` property.
      Returns:
      filter
    • setFilter

      public void setFilter(String filter)
    • matchAttribute

      public PolicySubject matchAttribute(String matchAttribute)
    • getMatchAttribute

      @Nullable public String getMatchAttribute()
      Okta User profile attribute for matching a transformed IdP username. Only for matchType `CUSTOM_ATTRIBUTE`. The `matchAttribute` must be a valid Okta User profile attribute of one of the following types: * String (with no format or 'email' format only) * Integer * Number
      Returns:
      matchAttribute
    • setMatchAttribute

      public void setMatchAttribute(String matchAttribute)
    • matchType

      public PolicySubject matchType(PolicySubjectMatchType matchType)
    • getMatchType

      @Nullable public PolicySubjectMatchType getMatchType()
      Get matchType
      Returns:
      matchType
    • setMatchType

      public void setMatchType(PolicySubjectMatchType matchType)
    • userNameTemplate

      public PolicySubject userNameTemplate(PolicyUserNameTemplate userNameTemplate)
    • getUserNameTemplate

      @Nullable public PolicyUserNameTemplate getUserNameTemplate()
      Get userNameTemplate
      Returns:
      userNameTemplate
    • setUserNameTemplate

      public void setUserNameTemplate(PolicyUserNameTemplate userNameTemplate)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object