Class PasswordValidationPolicy (0.1.0)

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.v1beta4.PasswordValidationPolicy

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()
Returns
Type Description
PasswordValidationPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PasswordValidationPolicy.Builder newBuilder()
Returns
Type Description
PasswordValidationPolicy.Builder

newBuilder(PasswordValidationPolicy prototype)

public static PasswordValidationPolicy.Builder newBuilder(PasswordValidationPolicy prototype)
Parameter
Name Description
prototype PasswordValidationPolicy
Returns
Type Description
PasswordValidationPolicy.Builder

parseDelimitedFrom(InputStream input)

public static PasswordValidationPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PasswordValidationPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PasswordValidationPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PasswordValidationPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PasswordValidationPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PasswordValidationPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PasswordValidationPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordValidationPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PasswordValidationPolicy> parser()
Returns
Type Description
Parser<PasswordValidationPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getComplexity()

public PasswordValidationPolicy.Complexity getComplexity()

The complexity of the password.

.google.cloud.sql.v1beta4.PasswordValidationPolicy.Complexity complexity = 2;

Returns
Type Description
PasswordValidationPolicy.Complexity

The complexity.

getComplexityValue()

public int getComplexityValue()

The complexity of the password.

.google.cloud.sql.v1beta4.PasswordValidationPolicy.Complexity complexity = 2;

Returns
Type Description
int

The enum numeric value on the wire for complexity.

getDefaultInstanceForType()

public PasswordValidationPolicy getDefaultInstanceForType()
Returns
Type Description
PasswordValidationPolicy

getDisallowCompromisedCredentials() (deprecated)

public BoolValue getDisallowCompromisedCredentials()

Deprecated. google.cloud.sql.v1beta4.PasswordValidationPolicy.disallow_compromised_credentials is deprecated. See google/cloud/sql/v1beta4/cloud_sql_resources.proto;l=3093

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];

Returns
Type Description
BoolValueOrBuilder

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;

Returns
Type Description
BoolValueOrBuilder

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;

Returns
Type Description
BoolValueOrBuilder

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;

Returns
Type Description
Int32ValueOrBuilder

getParserForType()

public Parser<PasswordValidationPolicy> getParserForType()
Returns
Type Description
Parser<PasswordValidationPolicy>
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;

Returns
Type Description
DurationOrBuilder

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;

Returns
Type Description
Int32ValueOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDisallowCompromisedCredentials() (deprecated)

public boolean hasDisallowCompromisedCredentials()

Deprecated. google.cloud.sql.v1beta4.PasswordValidationPolicy.disallow_compromised_credentials is deprecated. See google/cloud/sql/v1beta4/cloud_sql_resources.proto;l=3093

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PasswordValidationPolicy.Builder newBuilderForType()
Returns
Type Description
PasswordValidationPolicy.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PasswordValidationPolicy.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PasswordValidationPolicy.Builder
Overrides

toBuilder()

public PasswordValidationPolicy.Builder toBuilder()
Returns
Type Description
PasswordValidationPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException