Class PrivatePasswordLeakVerification.Builder (3.80.0)

public static final class PrivatePasswordLeakVerification.Builder extends GeneratedMessage.Builder<PrivatePasswordLeakVerification.Builder> implements PrivatePasswordLeakVerificationOrBuilder

Private password leak verification info.

Protobuf type google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification

Static Methods

getDescriptor()

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

Methods

addAllEncryptedLeakMatchPrefixes(Iterable<? extends ByteString> values)

public PrivatePasswordLeakVerification.Builder addAllEncryptedLeakMatchPrefixes(Iterable<? extends ByteString> values)

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The encryptedLeakMatchPrefixes to add.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

addEncryptedLeakMatchPrefixes(ByteString value)

public PrivatePasswordLeakVerification.Builder addEncryptedLeakMatchPrefixes(ByteString value)

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The encryptedLeakMatchPrefixes to add.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

build()

public PrivatePasswordLeakVerification build()
Returns
Type Description
PrivatePasswordLeakVerification

buildPartial()

public PrivatePasswordLeakVerification buildPartial()
Returns
Type Description
PrivatePasswordLeakVerification

clear()

public PrivatePasswordLeakVerification.Builder clear()
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

clearEncryptedLeakMatchPrefixes()

public PrivatePasswordLeakVerification.Builder clearEncryptedLeakMatchPrefixes()

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearEncryptedUserCredentialsHash()

public PrivatePasswordLeakVerification.Builder clearEncryptedUserCredentialsHash()

Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through reencrypted_user_credentials_hash.

bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearLookupHashPrefix()

public PrivatePasswordLeakVerification.Builder clearLookupHashPrefix()

Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.

bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

clearReencryptedUserCredentialsHash()

public PrivatePasswordLeakVerification.Builder clearReencryptedUserCredentialsHash()

Output only. Corresponds to the re-encryption of the encrypted_user_credentials_hash field. It is used to match potential password leaks within encrypted_leak_match_prefixes.

bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

getDefaultInstanceForType()

public PrivatePasswordLeakVerification getDefaultInstanceForType()
Returns
Type Description
PrivatePasswordLeakVerification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptedLeakMatchPrefixes(int index)

public ByteString getEncryptedLeakMatchPrefixes(int index)

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The encryptedLeakMatchPrefixes at the given index.

getEncryptedLeakMatchPrefixesCount()

public int getEncryptedLeakMatchPrefixesCount()

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of encryptedLeakMatchPrefixes.

getEncryptedLeakMatchPrefixesList()

public List<ByteString> getEncryptedLeakMatchPrefixesList()

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ByteString>

A list containing the encryptedLeakMatchPrefixes.

getEncryptedUserCredentialsHash()

public ByteString getEncryptedUserCredentialsHash()

Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through reencrypted_user_credentials_hash.

bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The encryptedUserCredentialsHash.

getLookupHashPrefix()

public ByteString getLookupHashPrefix()

Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.

bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The lookupHashPrefix.

getReencryptedUserCredentialsHash()

public ByteString getReencryptedUserCredentialsHash()

Output only. Corresponds to the re-encryption of the encrypted_user_credentials_hash field. It is used to match potential password leaks within encrypted_leak_match_prefixes.

bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The reencryptedUserCredentialsHash.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivatePasswordLeakVerification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrivatePasswordLeakVerification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivatePasswordLeakVerification.Builder
Overrides

mergeFrom(PrivatePasswordLeakVerification other)

public PrivatePasswordLeakVerification.Builder mergeFrom(PrivatePasswordLeakVerification other)
Parameter
Name Description
other PrivatePasswordLeakVerification
Returns
Type Description
PrivatePasswordLeakVerification.Builder

setEncryptedLeakMatchPrefixes(int index, ByteString value)

public PrivatePasswordLeakVerification.Builder setEncryptedLeakMatchPrefixes(int index, ByteString value)

Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of reencrypted_user_credentials_hash

repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value ByteString

The encryptedLeakMatchPrefixes to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setEncryptedUserCredentialsHash(ByteString value)

public PrivatePasswordLeakVerification.Builder setEncryptedUserCredentialsHash(ByteString value)

Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through reencrypted_user_credentials_hash.

bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The encryptedUserCredentialsHash to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setLookupHashPrefix(ByteString value)

public PrivatePasswordLeakVerification.Builder setLookupHashPrefix(ByteString value)

Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.

bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The lookupHashPrefix to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.

setReencryptedUserCredentialsHash(ByteString value)

public PrivatePasswordLeakVerification.Builder setReencryptedUserCredentialsHash(ByteString value)

Output only. Corresponds to the re-encryption of the encrypted_user_credentials_hash field. It is used to match potential password leaks within encrypted_leak_match_prefixes.

bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The reencryptedUserCredentialsHash to set.

Returns
Type Description
PrivatePasswordLeakVerification.Builder

This builder for chaining.