summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-09 19:55:40 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-09 19:55:40 -0800
commit1473078585937057deca74a8264f332327ab9869 (patch)
treee567c3db619d0a0c0f9534b551b35e9fcfa681bc /src
parentdb132c3c9216833d05c4fb1bfea5f3d94190e02a (diff)
downloadDotNetOpenAuth-1473078585937057deca74a8264f332327ab9869.zip
DotNetOpenAuth-1473078585937057deca74a8264f332327ab9869.tar.gz
DotNetOpenAuth-1473078585937057deca74a8264f332327ab9869.tar.bz2
InfoCard assemblies now FxCop clean. #68
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.InfoCard/InfoCard/Token/TokenUtility.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.InfoCard/InfoCard/Token/TokenUtility.cs b/src/DotNetOpenAuth.InfoCard/InfoCard/Token/TokenUtility.cs
index 5daffa8..c424916 100644
--- a/src/DotNetOpenAuth.InfoCard/InfoCard/Token/TokenUtility.cs
+++ b/src/DotNetOpenAuth.InfoCard/InfoCard/Token/TokenUtility.cs
@@ -12,6 +12,7 @@ namespace DotNetOpenAuth.InfoCard {
using System;
using System.Collections.Generic;
using System.Configuration;
+ using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.IdentityModel.Claims;
using System.IdentityModel.Policy;
@@ -104,6 +105,7 @@ namespace DotNetOpenAuth.InfoCard {
/// </summary>
/// <param name="claim">Claim to translate to a string</param>
/// <returns>The string representation of a claim's value.</returns>
+ [SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "False positive.")]
internal static string GetResourceValue(Claim claim) {
string strClaim = claim.Resource as string;
if (!string.IsNullOrEmpty(strClaim)) {
@@ -218,6 +220,7 @@ namespace DotNetOpenAuth.InfoCard {
/// <value>The ID displayed by the Identity Selector.</value>
/// <param name="ppid">The personal private identifier.</param>
/// <returns>A string containing the XXX-XXXX-XXX cosmetic value.</returns>
+ [SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "False positive.")]
internal static string CalculateSiteSpecificID(string ppid) {
Requires.NotNull(ppid, "ppid");
Contract.Ensures(!string.IsNullOrEmpty(Contract.Result<string>()));
@@ -270,6 +273,7 @@ namespace DotNetOpenAuth.InfoCard {
/// <param name="issuerKey">The key of the issuer of the token</param>
/// <param name="claimValue">the claim value to hash with.</param>
/// <returns>A base64 representation of the combined ID.</returns>
+ [SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "False positive.")]
private static string ComputeCombinedId(RSA issuerKey, string claimValue) {
Requires.NotNull(issuerKey, "issuerKey");
Requires.NotNull(claimValue, "claimValue");