Class SshPublicKey
java.lang.Object
com.azure.resourcemanager.workloads.models.SshPublicKey
Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeyData()
Get the keyData property: SSH public key certificate used to authenticate with the VM through ssh.void
validate()
Validates the instance.withKeyData
(String keyData) Set the keyData property: SSH public key certificate used to authenticate with the VM through ssh.
-
Constructor Details
-
SshPublicKey
public SshPublicKey()
-
-
Method Details
-
keyData
Get the keyData property: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).- Returns:
- the keyData value.
-
withKeyData
Set the keyData property: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).- Parameters:
keyData
- the keyData value to set.- Returns:
- the SshPublicKey object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-