//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth2.AuthServer.Messages { using System; using System.Collections.Generic; using System.Linq; using System.Text; using DotNetOpenAuth.OAuth2.AuthServer.ChannelElements; using DotNetOpenAuth.OAuth2.ChannelElements; using DotNetOpenAuth.OAuth2.Messages; /// /// A request from the client to the token endpoint for a new access token /// in exchange for a refresh token that the client has previously obtained. /// internal class AccessTokenRefreshRequestAS : AccessTokenRefreshRequest, IRefreshTokenCarryingRequest { /// /// Initializes a new instance of the class. /// /// The token endpoint. /// The version. internal AccessTokenRefreshRequestAS(Uri tokenEndpoint, Version version) : base(tokenEndpoint, version) { } #region IRefreshTokenCarryingRequest members /// /// Gets or sets the verification code or refresh/access token. /// /// The code or token. string IRefreshTokenCarryingRequest.RefreshToken { get { return this.RefreshToken; } set { this.RefreshToken = value; } } /// /// Gets or sets the authorization that the token describes. /// RefreshToken IRefreshTokenCarryingRequest.AuthorizationDescription { get; set; } /// /// Gets the authorization that the token describes. /// IAuthorizationDescription IAuthorizationCarryingRequest.AuthorizationDescription { get { return ((IRefreshTokenCarryingRequest)this).AuthorizationDescription; } } #endregion } }