//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuth2.Messages {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.OAuth2.ChannelElements;
///
/// A request from a Client to an Authorization Server to exchange an authorization code for an access token,
/// and (at the authorization server's option) a refresh token.
///
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) {
}
#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
}
}