public final class SecurityKey
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud OS Login API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SecurityKey() |
Modifier and Type | Method and Description |
---|---|
SecurityKey |
clone() |
String |
getDeviceNickname()
The security key nickname explicitly set by the user.
|
String |
getPrivateKey()
Hardware-backed private key text in SSH format.
|
String |
getPublicKey()
Public key text in SSH format, defined by [RFC4253]("https://www.ietf.org/rfc/rfc4253.txt")
section 6.6.
|
UniversalTwoFactor |
getUniversalTwoFactor()
The U2F protocol type.
|
WebAuthn |
getWebAuthn()
The Web Authentication protocol type.
|
SecurityKey |
set(String fieldName,
Object value) |
SecurityKey |
setDeviceNickname(String deviceNickname)
The security key nickname explicitly set by the user.
|
SecurityKey |
setPrivateKey(String privateKey)
Hardware-backed private key text in SSH format.
|
SecurityKey |
setPublicKey(String publicKey)
Public key text in SSH format, defined by [RFC4253]("https://www.ietf.org/rfc/rfc4253.txt")
section 6.6.
|
SecurityKey |
setUniversalTwoFactor(UniversalTwoFactor universalTwoFactor)
The U2F protocol type.
|
SecurityKey |
setWebAuthn(WebAuthn webAuthn)
The Web Authentication protocol type.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getDeviceNickname()
null
for nonepublic SecurityKey setDeviceNickname(String deviceNickname)
deviceNickname
- deviceNickname or null
for nonepublic String getPrivateKey()
null
for nonepublic SecurityKey setPrivateKey(String privateKey)
privateKey
- privateKey or null
for nonepublic String getPublicKey()
null
for nonepublic SecurityKey setPublicKey(String publicKey)
publicKey
- publicKey or null
for nonepublic UniversalTwoFactor getUniversalTwoFactor()
null
for nonepublic SecurityKey setUniversalTwoFactor(UniversalTwoFactor universalTwoFactor)
universalTwoFactor
- universalTwoFactor or null
for nonepublic WebAuthn getWebAuthn()
null
for nonepublic SecurityKey setWebAuthn(WebAuthn webAuthn)
webAuthn
- webAuthn or null
for nonepublic SecurityKey set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SecurityKey clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.