diff options
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.ClientAuthorization/OAuth2/Messages/AccessTokenResult.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.ClientAuthorization/OAuth2/Messages/AccessTokenResult.cs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.ClientAuthorization/OAuth2/Messages/AccessTokenResult.cs b/src/DotNetOpenAuth.OAuth2.ClientAuthorization/OAuth2/Messages/AccessTokenResult.cs deleted file mode 100644 index 11e486b..0000000 --- a/src/DotNetOpenAuth.OAuth2.ClientAuthorization/OAuth2/Messages/AccessTokenResult.cs +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------- -// <copyright file="AccessTokenResult.cs" company="Andrew Arnott"> -// Copyright (c) Andrew Arnott. All rights reserved. -// </copyright> -//----------------------------------------------------------------------- - -namespace DotNetOpenAuth.OAuth2 { - using System; - using System.Collections.Generic; - using System.Linq; - using System.Security.Cryptography; - using System.Text; - - /// <summary> - /// Describes the parameters to be fed into creating a response to an access token request. - /// </summary> - public class AccessTokenResult { - /// <summary> - /// Initializes a new instance of the <see cref="AccessTokenResult"/> class. - /// </summary> - /// <param name="accessToken">The access token to include in this result.</param> - public AccessTokenResult(AccessToken accessToken) { - Requires.NotNull(accessToken, "accessToken"); - this.AllowRefreshToken = true; - this.AccessToken = accessToken; - } - - /// <summary> - /// Gets or sets a value indicating whether to provide the client with a refresh token, when applicable. - /// </summary> - /// <value>The default value is <c>true</c>.</value> - /// <remarks>> - /// The refresh token will never be provided when this value is false. - /// The refresh token <em>may</em> be provided when this value is true. - /// </remarks> - public bool AllowRefreshToken { get; set; } - - /// <summary> - /// Gets the access token. - /// </summary> - public AccessToken AccessToken { get; private set; } - } -} |