Renci.SshNet.PrivateKeyAuthenticationMethod.PrivateKeyAuthenticationMethod C# (CSharp) Method

PrivateKeyAuthenticationMethod() public method

Initializes a new instance of the PrivateKeyAuthenticationMethod class.
is whitespace or null.
public PrivateKeyAuthenticationMethod ( string username ) : System
username string The username.
return System
        public PrivateKeyAuthenticationMethod(string username, params PrivateKeyFile[] keyFiles)
            : base(username)
        {
            if (keyFiles == null)
                throw new ArgumentNullException("keyFiles");

            KeyFiles = new Collection<PrivateKeyFile>(keyFiles);
        }