Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
more...

Overview

Private password leak verification info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification

Returns a new instance of GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification.

[View source]

1393
1394
1395
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1393

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#encrypted_leak_match_prefixesArray<String>

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 Corresponds to the JSON property encryptedLeakMatchPrefixes

Returns:

  • (Array<String>)

1367
1368
1369
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1367

def encrypted_leak_match_prefixes
  @encrypted_leak_match_prefixes
end

#encrypted_user_credentials_hashString

Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through reencrypted_user_credentials_hash. Corresponds to the JSON property encryptedUserCredentialsHash NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)

1375
1376
1377
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1375

def encrypted_user_credentials_hash
  @encrypted_user_credentials_hash
end

#lookup_hash_prefixString

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. Corresponds to the JSON property lookupHashPrefix NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)

1383
1384
1385
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1383

def lookup_hash_prefix
  @lookup_hash_prefix
end

#reencrypted_user_credentials_hashString

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. Corresponds to the JSON property reencryptedUserCredentialsHash NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)

1391
1392
1393
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1391

def reencrypted_user_credentials_hash
  @reencrypted_user_credentials_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1398
1399
1400
1401
1402
1403
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1398

def update!(**args)
  @encrypted_leak_match_prefixes = args[:encrypted_leak_match_prefixes] if args.key?(:encrypted_leak_match_prefixes)
  @encrypted_user_credentials_hash = args[:encrypted_user_credentials_hash] if args.key?(:encrypted_user_credentials_hash)
  @lookup_hash_prefix = args[:lookup_hash_prefix] if args.key?(:lookup_hash_prefix)
  @reencrypted_user_credentials_hash = args[:reencrypted_user_credentials_hash] if args.key?(:reencrypted_user_credentials_hash)
end