Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SshSetRequest"/> class.
 /// </summary>
 /// <param name="credentialName">Name of credential</param>
 /// <param name="privateKey">Private key for the credential</param>
 /// <param name="publicKey">Public key for the credential</param>
 public SshSetRequest(string credentialName, string privateKey, string publicKey)
 {
     Name  = credentialName;
     Type  = CredentialType.SSH;
     Value = new SshCredential {
         PrivateKey = privateKey, PublicKey = publicKey
     };
 }
Esempio n. 2
0
 public SshSetRequest(string credentialName, string privateKey, string publicKey, List <CredentialPermission> additionalPermissions = null, bool overwrite = false)
 {
     Name  = credentialName;
     Type  = CredentialType.SSH;
     Value = new SshCredential {
         PrivateKey = privateKey, PublicKey = publicKey
     };
     AdditionalPermissions = additionalPermissions;
     Overwrite             = overwrite;
 }