From 9b8f7510acac743b967b086e39c85f076de837a1 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Mon, 26 Jul 2010 21:28:59 +0900 Subject: [PATCH] 2010-07-26 Atsushi Enomoto * SamlSubject.cs : add missing .ctor(). --- .../System.IdentityModel.Tokens/ChangeLog | 4 ++++ .../System.IdentityModel.Tokens/SamlSubject.cs | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ChangeLog b/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ChangeLog index 4cf5025e00c..8838333f18a 100755 --- a/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ChangeLog +++ b/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ChangeLog @@ -1,3 +1,7 @@ +2010-07-26 Atsushi Enomoto + + * SamlSubject.cs : add missing .ctor(). + 2007-11-27 Atsushi Enomoto * SecurityKeyIdentifier.cs : fill 'out' parameter properly (gmcs diff --git a/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SamlSubject.cs b/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SamlSubject.cs index a2d5a92d6e0..975f9727e19 100644 --- a/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SamlSubject.cs +++ b/mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SamlSubject.cs @@ -44,7 +44,7 @@ namespace System.IdentityModel.Tokens string name_format, name_qualifier, name; SecurityKey crypto; SecurityKeyIdentifier key_identifier; - List confirmation_methods = new List (); + List confirmation_methods; string confirmation_data; public SamlSubject () @@ -52,12 +52,21 @@ namespace System.IdentityModel.Tokens } public SamlSubject (string nameFormat, string nameQualifier, string name) + : this (nameFormat, nameQualifier, name, new string [0], null, null) + { + } + + public SamlSubject (string nameFormat, string nameQualifier, string name, IEnumerable confirmations, string confirmationData, SecurityKeyIdentifier securityKeyIdentifier) { if (name == null || name.Length == 0) throw new ArgumentException ("non-zero length string must be specified for name of SAML Subject."); name_format = nameFormat; name_qualifier = nameQualifier; this.name = name; + + confirmation_methods = new List (confirmations); + confirmation_data = confirmationData; + key_identifier = securityKeyIdentifier; } public bool IsReadOnly { -- 2.11.4.GIT