//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using System; using DotNetOAuth.Messaging; /// /// A direct message sent by the Consumer to exchange an authorized Request Token /// for an Access Token and Token Secret. /// /// /// The class is sealed because the OAuth spec forbids adding parameters to this message. /// public sealed class GetAccessTokenMessage : SignedMessageBase, ITokenContainingMessage { /// /// Initializes a new instance of the class. /// /// The URI of the Service Provider endpoint to send this message to. internal GetAccessTokenMessage(MessageReceivingEndpoint serviceProvider) : base(MessageTransport.Direct, serviceProvider) { } /// /// Gets or sets the Token. /// string ITokenContainingMessage.Token { get { return this.RequestToken; } set { this.RequestToken = value; } } /// /// Gets or sets the Request Token. /// [MessagePart("oauth_token", IsRequired = true)] internal string RequestToken { get; set; } } }