diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-07 21:29:29 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-07 21:29:29 -0700 |
commit | b3a35b9ae0823dda35bb07b404c9c09fec09402a (patch) | |
tree | b58aaf62cf23c1e2c06a0f1d5f13ab899fff6a04 /samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs | |
parent | 8ed398b9151c8fc140379756bd3bd546a46daf05 (diff) | |
download | DotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.zip DotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.tar.gz DotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.tar.bz2 |
Lots of StyleCop work, and one bug fix (can you find it? <g>)
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs')
-rw-r--r-- | samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs index 75778f5..e281b07 100644 --- a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs +++ b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs @@ -11,9 +11,9 @@ using DotNetOpenAuth.OAuthWrap.ChannelElements; internal class OAuth2AuthorizationServer : IAuthorizationServer { - private static readonly byte[] secret; + internal static readonly RSAParameters AsymmetricKey; - internal static readonly RSAParameters asymmetricKey; + private static readonly byte[] secret; private readonly INonceStore nonceStore = new DatabaseNonceStore(); @@ -23,7 +23,7 @@ secret = new byte[16]; crypto.GetBytes(secret); - asymmetricKey = new RSACryptoServiceProvider().ExportParameters(true); + AsymmetricKey = new RSACryptoServiceProvider().ExportParameters(true); } #region Implementation of IAuthorizationServer @@ -37,7 +37,7 @@ } public RSAParameters AccessTokenSigningPrivateKey { - get { return asymmetricKey; } + get { return AsymmetricKey; } } public IConsumerDescription GetClient(string clientIdentifier) { |