// ----------------------------------------------------------------------- // // TODO: Update copyright text. // // ----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth2.Messages { using System; using System.Collections.Generic; using System.Linq; using System.Text; using DotNetOpenAuth.OAuth2.ChannelElements; /// /// TODO: Update summary. /// internal class AccessTokenAuthorizationCodeRequestAS : AccessTokenAuthorizationCodeRequest, IAuthorizationCodeCarryingRequest { /// /// Initializes a new instance of the class. /// /// The Authorization Server's access token endpoint URL. /// The version. internal AccessTokenAuthorizationCodeRequestAS(Uri tokenEndpoint, Version version) : base(tokenEndpoint, version) { } /// /// Initializes a new instance of the class. /// /// The authorization server. internal AccessTokenAuthorizationCodeRequestAS(AuthorizationServerDescription authorizationServer) : this(authorizationServer.TokenEndpoint, authorizationServer.Version) { Requires.NotNull(authorizationServer, "authorizationServer"); } #region IAuthorizationCodeCarryingRequest Members /// /// Gets or sets the verification code or refresh/access token. /// /// The code or token. string IAuthorizationCodeCarryingRequest.Code { get { return this.AuthorizationCode; } set { this.AuthorizationCode = value; } } /// /// Gets or sets the authorization that the token describes. /// AuthorizationCode IAuthorizationCodeCarryingRequest.AuthorizationDescription { get; set; } /// /// Gets the authorization that the code describes. /// IAuthorizationDescription IAuthorizationCarryingRequest.AuthorizationDescription { get { return ((IAuthorizationCodeCarryingRequest)this).AuthorizationDescription; } } #endregion } }