Class: Google::Apis::OsloginV1alpha::SecurityKey
- Inherits:
-
Object
- Object
- Google::Apis::OsloginV1alpha::SecurityKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/oslogin_v1alpha/classes.rb,
lib/google/apis/oslogin_v1alpha/representations.rb,
lib/google/apis/oslogin_v1alpha/representations.rb
Overview
The credential information for a Google registered security key.
Instance Attribute Summary collapse
-
#device_nickname ⇒ String
The security key nickname explicitly set by the user.
-
#private_key ⇒ String
Hardware-backed private key text in SSH format.
-
#public_key ⇒ String
Public key text in SSH format, defined by RFC4253 section 6.6.
-
#universal_two_factor ⇒ Google::Apis::OsloginV1alpha::UniversalTwoFactor
Security key information specific to the U2F protocol.
-
#web_authn ⇒ Google::Apis::OsloginV1alpha::WebAuthn
Security key information specific to the Web Authentication protocol.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityKey
constructor
A new instance of SecurityKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityKey
Returns a new instance of SecurityKey.
216 217 218 |
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_nickname ⇒ String
The security key nickname explicitly set by the user.
Corresponds to the JSON property deviceNickname
193 194 195 |
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 193 def device_nickname @device_nickname end |
#private_key ⇒ String
Hardware-backed private key text in SSH format.
Corresponds to the JSON property privateKey
198 199 200 |
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 198 def private_key @private_key end |
#public_key ⇒ String
Public key text in SSH format, defined by RFC4253 section 6.6.
Corresponds to the JSON property publicKey
204 205 206 |
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 204 def public_key @public_key end |
#universal_two_factor ⇒ Google::Apis::OsloginV1alpha::UniversalTwoFactor
Security key information specific to the U2F protocol.
Corresponds to the JSON property universalTwoFactor
209 210 211 |
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 209 def universal_two_factor @universal_two_factor end |
#web_authn ⇒ Google::Apis::OsloginV1alpha::WebAuthn
Security key information specific to the Web Authentication protocol.
Corresponds to the JSON property webAuthn
214 215 216 |
# File 'lib/google/apis/oslogin_v1alpha/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_v1alpha/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 |