summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs
blob: 4e00f20491f34fa327f9b14ebdc6277de105fea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//-----------------------------------------------------------------------
// <copyright file="AccessToken.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.OAuth {
	/// <summary>
	/// An OAuth 1.0 access token and secret.
	/// </summary>
	public struct AccessToken {
		/// <summary>
		/// Initializes a new instance of the <see cref="AccessToken"/> struct.
		/// </summary>
		/// <param name="token">The token.</param>
		/// <param name="secret">The secret.</param>
		public AccessToken(string token, string secret)
			: this() {
			this.Token = token;
			this.Secret = secret;
		}

		/// <summary>
		/// Gets or sets the token.
		/// </summary>
		/// <value>
		/// The token.
		/// </value>
		public string Token { get; set; }

		/// <summary>
		/// Gets or sets the token secret.
		/// </summary>
		/// <value>
		/// The secret.
		/// </value>
		public string Secret { get; set; }

		/// <summary>
		/// Returns a <see cref="System.String" /> that represents this instance.
		/// </summary>
		/// <returns>
		/// A <see cref="System.String" /> that represents this instance.
		/// </returns>
		public override string ToString() {
			return this.Token;
		}
	}
}