Class: Google::Apis::CloudkmsV1::ChallengeReply

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

Overview

A reply to a challenge signed by a 2FA key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChallengeReply

Returns a new instance of ChallengeReply.



684
685
686
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 684

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

Instance Attribute Details

#public_key_pemString

Required. The public key associated with the 2FA key. Corresponds to the JSON property publicKeyPem

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 675

def public_key_pem
  @public_key_pem
end

#signed_challengeString

Required. The signed challenge associated with the 2FA key. The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest. Corresponds to the JSON property signedChallenge NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


682
683
684
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 682

def signed_challenge
  @signed_challenge
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



689
690
691
692
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 689

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