Class: Google::Apis::OsloginV1beta::SecurityKey

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

Overview

The credential information for a Google registered security key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityKey

Returns a new instance of SecurityKey.



216
217
218
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 216

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

Instance Attribute Details

#device_nicknameString

The security key nickname explicitly set by the user. Corresponds to the JSON property deviceNickname

Returns:

  • (String)


193
194
195
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 193

def device_nickname
  @device_nickname
end

#private_keyString

Hardware-backed private key text in SSH format. Corresponds to the JSON property privateKey

Returns:

  • (String)


198
199
200
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 198

def private_key
  @private_key
end

#public_keyString

Public key text in SSH format, defined by RFC4253 section 6.6. Corresponds to the JSON property publicKey

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 204

def public_key
  @public_key
end

#universal_two_factorGoogle::Apis::OsloginV1beta::UniversalTwoFactor

Security key information specific to the U2F protocol. Corresponds to the JSON property universalTwoFactor



209
210
211
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 209

def universal_two_factor
  @universal_two_factor
end

#web_authnGoogle::Apis::OsloginV1beta::WebAuthn

Security key information specific to the Web Authentication protocol. Corresponds to the JSON property webAuthn



214
215
216
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 214

def web_authn
  @web_authn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



221
222
223
224
225
226
227
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 221

def update!(**args)
  @device_nickname = args[:device_nickname] if args.key?(:device_nickname)
  @private_key = args[:private_key] if args.key?(:private_key)
  @public_key = args[:public_key] if args.key?(:public_key)
  @universal_two_factor = args[:universal_two_factor] if args.key?(:universal_two_factor)
  @web_authn = args[:web_authn] if args.key?(:web_authn)
end