Class PasswordPolicy

java.lang.Object
com.cloudera.cdp.iam.model.PasswordPolicy

@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen", date="2024-09-12T15:07:45.609-07:00") public class PasswordPolicy extends Object
An object representing password policy options.
  • Constructor Details

    • PasswordPolicy

      public PasswordPolicy()
  • Method Details

    • getMaxPasswordLifetimeDays

      public Integer getMaxPasswordLifetimeDays()
      Getter for maxPasswordLifetimeDays. The maximum lifetime of passwords, in days. If set to '0' passwords never expire. The default is 0.
    • setMaxPasswordLifetimeDays

      public void setMaxPasswordLifetimeDays(Integer maxPasswordLifetimeDays)
      Setter for maxPasswordLifetimeDays. The maximum lifetime of passwords, in days. If set to '0' passwords never expire. The default is 0.
    • getMinPasswordLength

      public Integer getMinPasswordLength()
      Getter for minPasswordLength. The minimum length of a password. Can be any number between 6 and 256. The default minimum password length is 8.
    • setMinPasswordLength

      public void setMinPasswordLength(Integer minPasswordLength)
      Setter for minPasswordLength. The minimum length of a password. Can be any number between 6 and 256. The default minimum password length is 8.
    • getMustIncludeUpperCaseCharacters

      public Boolean getMustIncludeUpperCaseCharacters()
      Getter for mustIncludeUpperCaseCharacters. Whether passwords must include upper case characters. The default is 'true'.
    • setMustIncludeUpperCaseCharacters

      public void setMustIncludeUpperCaseCharacters(Boolean mustIncludeUpperCaseCharacters)
      Setter for mustIncludeUpperCaseCharacters. Whether passwords must include upper case characters. The default is 'true'.
    • getMustIncludeLowerCaseCharacters

      public Boolean getMustIncludeLowerCaseCharacters()
      Getter for mustIncludeLowerCaseCharacters. Whether passwords must include lower case characters. The default is 'true'.
    • setMustIncludeLowerCaseCharacters

      public void setMustIncludeLowerCaseCharacters(Boolean mustIncludeLowerCaseCharacters)
      Setter for mustIncludeLowerCaseCharacters. Whether passwords must include lower case characters. The default is 'true'.
    • getMustIncludeNumbers

      public Boolean getMustIncludeNumbers()
      Getter for mustIncludeNumbers. Whether passwords must include numbers. The default is 'true'.
    • setMustIncludeNumbers

      public void setMustIncludeNumbers(Boolean mustIncludeNumbers)
      Setter for mustIncludeNumbers. Whether passwords must include numbers. The default is 'true'.
    • getMustIncludeSymbols

      public Boolean getMustIncludeSymbols()
      Getter for mustIncludeSymbols. Whether passwords must include symbols. The symbols are '#', '&', '*', '$', '%', '@', '^', '.', '_', and '!'. The default is 'true'.
    • setMustIncludeSymbols

      public void setMustIncludeSymbols(Boolean mustIncludeSymbols)
      Setter for mustIncludeSymbols. Whether passwords must include symbols. The symbols are '#', '&', '*', '$', '%', '@', '^', '.', '_', and '!'. The default is 'true'.
    • getMinPasswordLifetimeDays

      public Integer getMinPasswordLifetimeDays()
      Getter for minPasswordLifetimeDays. The minimum lifetime of passwords, in days. The password must be used for this duration before it can be changed. If set to '0' the password may be changed any time. The default is 0. The minPasswordLifetimeDays must be greater than maxPasswordLifetimeDays.
    • setMinPasswordLifetimeDays

      public void setMinPasswordLifetimeDays(Integer minPasswordLifetimeDays)
      Setter for minPasswordLifetimeDays. The minimum lifetime of passwords, in days. The password must be used for this duration before it can be changed. If set to '0' the password may be changed any time. The default is 0. The minPasswordLifetimeDays must be greater than maxPasswordLifetimeDays.
    • getPasswordHistorySize

      public Integer getPasswordHistorySize()
      Getter for passwordHistorySize. The number of previous passwords that should be remembered. The user or machine user is prevented from reusing these passwords. Can be any number between 0 and 20. The default is 0, this value means all previous passwords may be reused.
    • setPasswordHistorySize

      public void setPasswordHistorySize(Integer passwordHistorySize)
      Setter for passwordHistorySize. The number of previous passwords that should be remembered. The user or machine user is prevented from reusing these passwords. Can be any number between 0 and 20. The default is 0, this value means all previous passwords may be reused.
    • 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