Class ErlTransportPasswordSource
Source of passwrod for transport (i.e. for SSH connection)
Inheritance
System.Object
ErlTransportPasswordSource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Erlang
Assembly: NFX.Erlang.dll
Syntax
public static class ErlTransportPasswordSource
Remarks
When IErlTransport requires password, it will call method GetPassword() of this class. The app must to handle event PasswordRequired to return password.
Methods
GetPassword(Object, String, String)
Returns password for specified userName and nodeName
Declaration
public static SecureString GetPassword(object sender, string nodeName, string userName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.String | nodeName | |
System.String | userName |
Returns
Type | Description |
---|---|
System.Security.SecureString |
StartPasswordSession(String, String)
Starts cache session of password
Declaration
public static ErlPasswordSession StartPasswordSession(string nodeName, string userName)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeName | |
System.String | userName |
Returns
Type | Description |
---|---|
ErlPasswordSession |
Events
PasswordRequired
Called when SSH(or other secure transport) user password (or private key file passphrase) is required. Handler must to return password for specified userName and nodeName
Declaration
public static event ErlPasswordRequiredEventHandler PasswordRequired
Event Type
Type | Description |
---|---|
ErlPasswordRequiredEventHandler |