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.



631
632
633
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 631

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


605
606
607
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 605

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)


613
614
615
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 613

def encrypted_user_credentials_hash
  @encrypted_user_credentials_hash
end

#lookup_hash_prefixString

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


621
622
623
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 621

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)


629
630
631
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 629

def reencrypted_user_credentials_hash
  @reencrypted_user_credentials_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



636
637
638
639
640
641
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 636

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