Свойство | Тип | Описание | |
---|---|---|---|
AuthMechanismRank | string[] |
Метод | Описание | |
---|---|---|
Challenge ( string token ) : string |
Decodes the base64-encoded server challenge and returns the next challenge response encoded in base64. Decodes the base64-encoded server challenge and returns the next challenge response encoded in base64. |
|
Create ( string mechanism, |
Create an instance of the specified SASL mechanism using the uri and credentials. If unsure that a particular SASL mechanism is supported, you should first call IsSupported. |
|
Create ( string mechanism, |
Create an instance of the specified SASL mechanism using the uri and credentials. If unsure that a particular SASL mechanism is supported, you should first call IsSupported. |
|
IsSupported ( string mechanism ) : bool |
Determines if the specified SASL mechanism is supported by MailKit. Use this method to make sure that a SASL mechanism is supported before calling Create(string,Uri,ICredentials). |
|
Reset ( ) : void |
Resets the state of the SASL mechanism. Resets the state of the SASL mechanism. |
|
SaslPrep ( string s ) : string |
Prepares the user name or password string. Prepares a user name or password string according to the rules of rfc4013. |
Метод | Описание | |
---|---|---|
Challenge ( byte token, int startIndex, int length ) : byte[] |
Parses the server's challenge token and returns the next challenge response. Parses the server's challenge token and returns the next challenge response. |
|
SaslMechanism ( |
Initializes a new instance of the MailKit.Security.SaslMechanism class. Creates a new SASL context. |
Метод | Описание | |
---|---|---|
IsCommonlyMappedToNothing ( char c ) : bool |
Determines if the character is commonly mapped to nothing. This list was obtained from http://tools.ietf.org/html/rfc3454#appendix-B.1 |
|
IsNonAsciiSpace ( char c ) : bool |
Determines if the character is a non-ASCII space. This list was obtained from http://tools.ietf.org/html/rfc3454#appendix-C.1.2 |
|
IsProhibited ( string s, int index ) : bool |
Determines if the character is prohibited. This list was obtained from http://tools.ietf.org/html/rfc3454#appendix-C.3 |
protected abstract Challenge ( byte token, int startIndex, int length ) : byte[] | ||
token | byte | The server's challenge token. |
startIndex | int | The index into the token specifying where the server's challenge begins. |
length | int | The length of the server's challenge. |
Результат | byte[] |
public Challenge ( string token ) : string | ||
token | string | The server's base64-encoded challenge token. |
Результат | string |
public static Create ( string mechanism, |
||
mechanism | string | The name of the SASL mechanism. |
uri | The URI of the service to authenticate against. | |
credentials | ICredentials | The user's credentials. |
Результат |
public static Create ( string mechanism, |
||
mechanism | string | The name of the SASL mechanism. |
uri | The URI of the service to authenticate against. | |
encoding | Portable.Text.Encoding | The text encoding to use for the credentials. |
credentials | ICredentials | The user's credentials. |
Результат |
public static IsSupported ( string mechanism ) : bool | ||
mechanism | string | The name of the SASL mechanism. |
Результат | bool |
protected SaslMechanism ( |
||
uri | The URI of the service. | |
credentials | ICredentials | The user's credentials. |
Результат | System |
public static SaslPrep ( string s ) : string | ||
s | string | The string to prepare. |
Результат | string |