public final class PasswordValidationPolicy extends GeneratedMessage implements PasswordValidationPolicyOrBuilder
Database instance local user password validation policy.
This message defines the password policy for local database users.
When enabled, it enforces constraints on password complexity, length,
and reuse. Keep this policy enabled to help prevent unauthorized access.
Protobuf type google.cloud.sql.v1.PasswordValidationPolicy
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
COMPLEXITY_FIELD_NUMBER
public static final int COMPLEXITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISALLOW_COMPROMISED_CREDENTIALS_FIELD_NUMBER
public static final int DISALLOW_COMPROMISED_CREDENTIALS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISALLOW_USERNAME_SUBSTRING_FIELD_NUMBER
public static final int DISALLOW_USERNAME_SUBSTRING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENABLE_PASSWORD_POLICY_FIELD_NUMBER
public static final int ENABLE_PASSWORD_POLICY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MIN_LENGTH_FIELD_NUMBER
public static final int MIN_LENGTH_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PASSWORD_CHANGE_INTERVAL_FIELD_NUMBER
public static final int PASSWORD_CHANGE_INTERVAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REUSE_INTERVAL_FIELD_NUMBER
public static final int REUSE_INTERVAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PasswordValidationPolicy getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PasswordValidationPolicy.Builder newBuilder()
newBuilder(PasswordValidationPolicy prototype)
public static PasswordValidationPolicy.Builder newBuilder(PasswordValidationPolicy prototype)
public static PasswordValidationPolicy parseDelimitedFrom(InputStream input)
public static PasswordValidationPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PasswordValidationPolicy parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PasswordValidationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PasswordValidationPolicy parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PasswordValidationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PasswordValidationPolicy parseFrom(CodedInputStream input)
public static PasswordValidationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PasswordValidationPolicy parseFrom(InputStream input)
public static PasswordValidationPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PasswordValidationPolicy parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PasswordValidationPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PasswordValidationPolicy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getComplexity()
public PasswordValidationPolicy.Complexity getComplexity()
The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
getComplexityValue()
public int getComplexityValue()
The complexity of the password.
.google.cloud.sql.v1.PasswordValidationPolicy.Complexity complexity = 2;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for complexity.
|
getDefaultInstanceForType()
public PasswordValidationPolicy getDefaultInstanceForType()
getDisallowCompromisedCredentials() (deprecated)
public BoolValue getDisallowCompromisedCredentials()
Deprecated. google.cloud.sql.v1.PasswordValidationPolicy.disallow_compromised_credentials is
deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=1569
This field is deprecated and will be removed in a future version of the
API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns |
| Type |
Description |
BoolValue |
The disallowCompromisedCredentials.
|
getDisallowCompromisedCredentialsOrBuilder() (deprecated)
public BoolValueOrBuilder getDisallowCompromisedCredentialsOrBuilder()
This field is deprecated and will be removed in a future version of the
API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
getDisallowUsernameSubstring()
public BoolValue getDisallowUsernameSubstring()
Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns |
| Type |
Description |
BoolValue |
The disallowUsernameSubstring.
|
getDisallowUsernameSubstringOrBuilder()
public BoolValueOrBuilder getDisallowUsernameSubstringOrBuilder()
Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
getEnablePasswordPolicy()
public BoolValue getEnablePasswordPolicy()
Whether to enable the password policy or not. When enabled, passwords must
meet complexity requirements. Keep this policy enabled to help prevent
unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns |
| Type |
Description |
BoolValue |
The enablePasswordPolicy.
|
getEnablePasswordPolicyOrBuilder()
public BoolValueOrBuilder getEnablePasswordPolicyOrBuilder()
Whether to enable the password policy or not. When enabled, passwords must
meet complexity requirements. Keep this policy enabled to help prevent
unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
getMinLength()
public Int32Value getMinLength()
Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns |
| Type |
Description |
Int32Value |
The minLength.
|
getMinLengthOrBuilder()
public Int32ValueOrBuilder getMinLengthOrBuilder()
Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
getParserForType()
public Parser<PasswordValidationPolicy> getParserForType()
Overrides
getPasswordChangeInterval()
public Duration getPasswordChangeInterval()
Minimum interval after which the password can be changed. This flag is only
supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns |
| Type |
Description |
Duration |
The passwordChangeInterval.
|
getPasswordChangeIntervalOrBuilder()
public DurationOrBuilder getPasswordChangeIntervalOrBuilder()
Minimum interval after which the password can be changed. This flag is only
supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
getReuseInterval()
public Int32Value getReuseInterval()
Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns |
| Type |
Description |
Int32Value |
The reuseInterval.
|
getReuseIntervalOrBuilder()
public Int32ValueOrBuilder getReuseIntervalOrBuilder()
Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasDisallowCompromisedCredentials() (deprecated)
public boolean hasDisallowCompromisedCredentials()
Deprecated. google.cloud.sql.v1.PasswordValidationPolicy.disallow_compromised_credentials is
deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=1569
This field is deprecated and will be removed in a future version of the
API.
.google.protobuf.BoolValue disallow_compromised_credentials = 7 [deprecated = true];
| Returns |
| Type |
Description |
boolean |
Whether the disallowCompromisedCredentials field is set.
|
hasDisallowUsernameSubstring()
public boolean hasDisallowUsernameSubstring()
Disallow username as a part of the password.
.google.protobuf.BoolValue disallow_username_substring = 4;
| Returns |
| Type |
Description |
boolean |
Whether the disallowUsernameSubstring field is set.
|
hasEnablePasswordPolicy()
public boolean hasEnablePasswordPolicy()
Whether to enable the password policy or not. When enabled, passwords must
meet complexity requirements. Keep this policy enabled to help prevent
unauthorized access. Disabling this policy allows weak passwords.
.google.protobuf.BoolValue enable_password_policy = 6;
| Returns |
| Type |
Description |
boolean |
Whether the enablePasswordPolicy field is set.
|
hasMinLength()
public boolean hasMinLength()
Minimum number of characters allowed.
.google.protobuf.Int32Value min_length = 1;
| Returns |
| Type |
Description |
boolean |
Whether the minLength field is set.
|
hasPasswordChangeInterval()
public boolean hasPasswordChangeInterval()
Minimum interval after which the password can be changed. This flag is only
supported for PostgreSQL.
.google.protobuf.Duration password_change_interval = 5;
| Returns |
| Type |
Description |
boolean |
Whether the passwordChangeInterval field is set.
|
hasReuseInterval()
public boolean hasReuseInterval()
Number of previous passwords that cannot be reused.
.google.protobuf.Int32Value reuse_interval = 3;
| Returns |
| Type |
Description |
boolean |
Whether the reuseInterval field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PasswordValidationPolicy.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PasswordValidationPolicy.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PasswordValidationPolicy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides