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

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.



1330
1331
1332
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1330

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


1304
1305
1306
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1304

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)


1312
1313
1314
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1312

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)


1320
1321
1322
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1320

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)


1328
1329
1330
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1328

def reencrypted_user_credentials_hash
  @reencrypted_user_credentials_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
1339
1340
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1335

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