diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OAuth2/IAuthorizationServer.cs | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/src/DotNetOpenAuth/OAuth2/IAuthorizationServer.cs b/src/DotNetOpenAuth/OAuth2/IAuthorizationServer.cs index ccce0ab..9a62277 100644 --- a/src/DotNetOpenAuth/OAuth2/IAuthorizationServer.cs +++ b/src/DotNetOpenAuth/OAuth2/IAuthorizationServer.cs @@ -30,8 +30,15 @@ namespace DotNetOpenAuth.OAuth2 { byte[] Secret { get; } /// <summary> + /// Gets the authorization code nonce store to use to ensure that authorization codes can only be used once. + /// </summary> + /// <value>The authorization code nonce store.</value> + INonceStore VerificationCodeNonceStore { get; } + + /// <summary> /// Creates a new instance of the crypto service provider with the asymmetric private key to use for signing access tokens. /// </summary> + /// <returns>A crypto service provider instance that contains the private key.</returns> /// <value>Must not be null, and must contain the private key.</value> /// <remarks> /// The public key in the private/public key pair will be used by the resource @@ -41,12 +48,6 @@ namespace DotNetOpenAuth.OAuth2 { RSACryptoServiceProvider CreateAccessTokenSigningCryptoServiceProvider(); /// <summary> - /// Gets the authorization code nonce store to use to ensure that authorization codes can only be used once. - /// </summary> - /// <value>The authorization code nonce store.</value> - INonceStore VerificationCodeNonceStore { get; } - - /// <summary> /// Gets the client with a given identifier. /// </summary> /// <param name="clientIdentifier">The client identifier.</param> @@ -107,8 +108,23 @@ namespace DotNetOpenAuth.OAuth2 { } /// <summary> + /// Gets the authorization code nonce store to use to ensure that authorization codes can only be used once. + /// </summary> + /// <value>The authorization code nonce store.</value> + INonceStore IAuthorizationServer.VerificationCodeNonceStore { + get { + Contract.Ensures(Contract.Result<INonceStore>() != null); + throw new NotImplementedException(); + } + } + + /// <summary> /// Gets the crypto service provider with the asymmetric private key to use for signing access tokens. /// </summary> + /// <returns> + /// A crypto service provider instance that contains the private key. + /// </returns> + /// <value>Must not be null, and must contain the private key.</value> /// <remarks> /// The public key in the private/public key pair will be used by the resource /// servers to validate that the access token is minted by a trusted authorization server. @@ -120,17 +136,6 @@ namespace DotNetOpenAuth.OAuth2 { } /// <summary> - /// Gets the authorization code nonce store to use to ensure that authorization codes can only be used once. - /// </summary> - /// <value>The authorization code nonce store.</value> - INonceStore IAuthorizationServer.VerificationCodeNonceStore { - get { - Contract.Ensures(Contract.Result<INonceStore>() != null); - throw new NotImplementedException(); - } - } - - /// <summary> /// Gets the client with a given identifier. /// </summary> /// <param name="clientIdentifier">The client identifier.</param> |