diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-23 22:08:04 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-23 22:08:04 -0800 |
commit | cf3170cf207ffa6776ccc07d4c143bd039b18025 (patch) | |
tree | a5d4931bcbf62740767516c6b9a85a635dfe7fc0 /src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs | |
parent | d3abc25d045d0470f10a764d73d1eec8747ef1a3 (diff) | |
download | DotNetOpenAuth-cf3170cf207ffa6776ccc07d4c143bd039b18025.zip DotNetOpenAuth-cf3170cf207ffa6776ccc07d4c143bd039b18025.tar.gz DotNetOpenAuth-cf3170cf207ffa6776ccc07d4c143bd039b18025.tar.bz2 |
Sensitive message information is now masked from logging.
Fixes #243
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs b/src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs index b2c4664..0f140d6 100644 --- a/src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs +++ b/src/DotNetOpenAuth.Core/Messaging/Reflection/MessagePart.cs @@ -115,6 +115,7 @@ namespace DotNetOpenAuth.Messaging.Reflection { this.RequiredProtection = attribute.RequiredProtection; this.IsRequired = attribute.IsRequired; this.AllowEmpty = attribute.AllowEmpty; + this.IsSecuritySensitive = attribute.IsSecuritySensitive; this.memberDeclaredType = (this.field != null) ? this.field.FieldType : this.property.PropertyType; this.defaultMemberValue = DeriveDefaultValue(this.memberDeclaredType); @@ -189,6 +190,15 @@ namespace DotNetOpenAuth.Messaging.Reflection { internal bool IsConstantValueAvailableStatically { get; set; } /// <summary> + /// Gets or sets a value indicating whether the value contained by this property contains + /// sensitive information that should generally not be logged. + /// </summary> + /// <value> + /// <c>true</c> if this instance is security sensitive; otherwise, <c>false</c>. + /// </value> + internal bool IsSecuritySensitive { get; set; } + + /// <summary> /// Gets the static constant value for this message part without a message instance. /// </summary> internal string StaticConstantValue { |