SshPublicKey Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. SshPublicKey
- com.
Implements
public final class SshPublicKey
implements JsonSerializable<SshPublicKey>
SshPublicKey represents the public key used to authenticate with a resource through SSH.
Constructor Summary
| Constructor | Description |
|---|---|
| SshPublicKey() |
Creates an instance of Ssh |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Ssh |
fromJson(JsonReader jsonReader)
Reads an instance of Ssh |
| String |
keyData()
Get the key |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Ssh |
withKeyData(String keyData)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
SshPublicKey
public SshPublicKey()
Creates an instance of SshPublicKey class.
Method Details
fromJson
public static SshPublicKey fromJson(JsonReader jsonReader)
Reads an instance of SshPublicKey from the JsonReader.
Parameters:
Returns:
Throws:
keyData
public String keyData()
Get the keyData property: The SSH public key data.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeyData
public SshPublicKey withKeyData(String keyData)
Set the keyData property: The SSH public key data.
Parameters:
Returns: