Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse

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

Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party integration with legacy reCAPTCHA.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse

Returns a new instance of GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse.



1542
1543
1544
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1542

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

Instance Attribute Details

#legacy_secret_keyString

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes. Corresponds to the JSON property legacySecretKey

Returns:

  • (String)


1540
1541
1542
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1540

def legacy_secret_key
  @legacy_secret_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1547
1548
1549
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1547

def update!(**args)
  @legacy_secret_key = args[:legacy_secret_key] if args.key?(:legacy_secret_key)
end