Class DatabaseInstanceSettingsPasswordValidationPolicy


  • public final class DatabaseInstanceSettingsPasswordValidationPolicy
    extends java.lang.Object
    • Method Detail

      • complexity

        public java.util.Optional<java.lang.String> complexity()
        Returns:
        Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
      • disallowUsernameSubstring

        public java.util.Optional<java.lang.Boolean> disallowUsernameSubstring()
        Returns:
        Prevents the use of the username in the password.
      • enablePasswordPolicy

        public java.lang.Boolean enablePasswordPolicy()
        Returns:
        Enables or disable the password validation policy. The optional `replica_configuration` block must have `master_instance_name` set to work, cannot be updated, and supports:
      • minLength

        public java.util.Optional<java.lang.Integer> minLength()
        Returns:
        Specifies the minimum number of characters that the password must have.
      • passwordChangeInterval

        public java.util.Optional<java.lang.String> passwordChangeInterval()
        Returns:
        Specifies the minimum duration after which you can change the password.
      • reuseInterval

        public java.util.Optional<java.lang.Integer> reuseInterval()
        Returns:
        Specifies the number of previous passwords that you can't reuse.