• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SmtpOAuth2Token

An OAuth 2.0 access token for SMTP authentication via the XOAUTH2 SASL mechanism. A type-forward subclass of SaslOAuth2Token. Existing SMTP code and tests reference SmtpOAuth2Token unchanged; the shared SaslOAuth2Token is used by POP3 and IMAP.

Inheritance
object
SaslOAuth2Token
SmtpOAuth2Token
Inherited Members
SaslOAuth2Token.UserName
SaslOAuth2Token.AccessToken
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Smtp.Auth
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpOAuth2Token : SaslOAuth2Token

Constructors

View Source

SmtpOAuth2Token(string, string)

Initializes a new instance of the SmtpOAuth2Token class.

Declaration
public SmtpOAuth2Token(string userName, string accessToken)
Parameters
Type Name Description
string userName

The user name (email address) associated with the token.

string accessToken

The OAuth 2.0 access token.

  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX