summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-11 17:05:17 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-11 17:05:17 -0700
commit71ad97999352d76d50f619e9bec208ec8e3e79c8 (patch)
treeda8acb601785ffffd72ac1a58b38919256cebaaf /src
parent34da8f975a0515d72fda97979d0602d3c004173f (diff)
downloadDotNetOpenAuth-71ad97999352d76d50f619e9bec208ec8e3e79c8.zip
DotNetOpenAuth-71ad97999352d76d50f619e9bec208ec8e3e79c8.tar.gz
DotNetOpenAuth-71ad97999352d76d50f619e9bec208ec8e3e79c8.tar.bz2
Fixed StyleCop issues and added comments.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.OpenId/OpenId/OpenIdUtilities.cs20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/OpenIdUtilities.cs b/src/DotNetOpenAuth.OpenId/OpenId/OpenIdUtilities.cs
index f8a32b5..a5202de 100644
--- a/src/DotNetOpenAuth.OpenId/OpenId/OpenIdUtilities.cs
+++ b/src/DotNetOpenAuth.OpenId/OpenId/OpenIdUtilities.cs
@@ -12,14 +12,12 @@ namespace DotNetOpenAuth.OpenId {
using System.Globalization;
using System.IO;
using System.Linq;
- using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId.ChannelElements;
using DotNetOpenAuth.OpenId.Extensions;
- using DotNetOpenAuth.OpenId.Messages;
using Org.Mentalis.Security.Cryptography;
/// <summary>
@@ -31,8 +29,18 @@ namespace DotNetOpenAuth.OpenId {
/// </summary>
internal const string CustomParameterPrefix = "dnoa.";
+ /// <summary>
+ /// A static variable that carries the results of a check for the presence of
+ /// assemblies that are required for the Diffie-Hellman algorithm.
+ /// </summary>
private static bool? diffieHellmanPresent;
+ /// <summary>
+ /// Gets a value indicating whether Diffie Hellman is available in this installation.
+ /// </summary>
+ /// <value>
+ /// <c>true</c> if Diffie-Hellman functionality is present; otherwise, <c>false</c>.
+ /// </value>
internal static bool IsDiffieHellmanPresent {
get {
if (!diffieHellmanPresent.HasValue) {
@@ -197,8 +205,14 @@ namespace DotNetOpenAuth.OpenId {
return aggregator.Factories;
}
+ /// <summary>
+ /// Loads the Diffie-Hellman assemblies.
+ /// </summary>
+ /// <exception cref="FileNotFoundException">Thrown if the DH assemblies are missing.</exception>
private static void LoadDiffieHellmanTypes() {
- var dhAssemblyType = typeof(DiffieHellmanManaged);
+ // This seeming no-op instruction is enough for the CLR to throw a FileNotFoundException
+ // If the assemblies are missing.
+ new DiffieHellmanManaged();
}
}
}