SshPublicKey Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.SshPublicKey

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 SshPublicKey class.

Method Summary

Modifier and Type Method and Description
static SshPublicKey fromJson(JsonReader jsonReader)

Reads an instance of SshPublicKey from the JsonReader.

String keyData()

Get the keyData property: The SSH public key data.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SshPublicKey withKeyData(String keyData)

Set the keyData property: The SSH public key data.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of SshPublicKey if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keyData

public String keyData()

Get the keyData property: The SSH public key data.

Returns:

the keyData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyData

public SshPublicKey withKeyData(String keyData)

Set the keyData property: The SSH public key data.

Parameters:

keyData - the keyData value to set.

Returns:

the SshPublicKey object itself.

Applies to