# Cloud OS Login V1beta API - Class Google::Cloud::OsLogin::V1beta::SecurityKey (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.2 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud OS Login V1beta API class Google::Cloud::OsLogin::V1beta::SecurityKey.

The credential information for a Google registered security key.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #device_nickname

    def device_nickname() -> ::String

**Returns**

- (::String) --- The security key nickname explicitly set by the user.

### #device_nickname=

    def device_nickname=(value) -> ::String

**Parameter**

- **value** (::String) --- The security key nickname explicitly set by the user.
**Returns**

- (::String) --- The security key nickname explicitly set by the user.

### #private_key

    def private_key() -> ::String

**Returns**

- (::String) --- Hardware-backed private key text in SSH format.

### #private_key=

    def private_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Hardware-backed private key text in SSH format.
**Returns**

- (::String) --- Hardware-backed private key text in SSH format.

### #public_key

    def public_key() -> ::String

**Returns**

- (::String) --- Public key text in SSH format, defined by [RFC4253](about:invalid#zCSafez) section 6.6.

### #public_key=

    def public_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Public key text in SSH format, defined by [RFC4253](about:invalid#zCSafez) section 6.6.
**Returns**

- (::String) --- Public key text in SSH format, defined by [RFC4253](about:invalid#zCSafez) section 6.6.

### #universal_two_factor

    def universal_two_factor() -> ::Google::Cloud::OsLogin::V1beta::UniversalTwoFactor

**Returns**

- ([::Google::Cloud::OsLogin::V1beta::UniversalTwoFactor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-UniversalTwoFactor)) --- The U2F protocol type.


  Note: The following fields are mutually exclusive: `universal_two_factor`, `web_authn`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #universal_two_factor=

    def universal_two_factor=(value) -> ::Google::Cloud::OsLogin::V1beta::UniversalTwoFactor

**Parameter**

- **value** ([::Google::Cloud::OsLogin::V1beta::UniversalTwoFactor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-UniversalTwoFactor)) --- The U2F protocol type.


  Note: The following fields are mutually exclusive: `universal_two_factor`, `web_authn`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsLogin::V1beta::UniversalTwoFactor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-UniversalTwoFactor)) --- The U2F protocol type.


  Note: The following fields are mutually exclusive: `universal_two_factor`, `web_authn`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #web_authn

    def web_authn() -> ::Google::Cloud::OsLogin::V1beta::WebAuthn

**Returns**

- ([::Google::Cloud::OsLogin::V1beta::WebAuthn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-WebAuthn)) --- The Web Authentication protocol type.


  Note: The following fields are mutually exclusive: `web_authn`, `universal_two_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #web_authn=

    def web_authn=(value) -> ::Google::Cloud::OsLogin::V1beta::WebAuthn

**Parameter**

- **value** ([::Google::Cloud::OsLogin::V1beta::WebAuthn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-WebAuthn)) --- The Web Authentication protocol type.


  Note: The following fields are mutually exclusive: `web_authn`, `universal_two_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsLogin::V1beta::WebAuthn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-WebAuthn)) --- The Web Authentication protocol type.


  Note: The following fields are mutually exclusive: `web_authn`, `universal_two_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.