Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
//
// CardSpaceException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class CardSpaceException : Exception
{
public CardSpaceException ()
: this ("CardSpace exception.")
{
}
public CardSpaceException (string message)
: this (message, null)
{
}
protected CardSpaceException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public CardSpaceException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,87 @@
//
// CardSpacePolicyElement.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2006-2007 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.ObjectModel;
using System.Xml;
namespace System.IdentityModel.Selectors
{
public class CardSpacePolicyElement
{
public CardSpacePolicyElement (
XmlElement target, XmlElement issuer,
Collection<XmlElement> parameters,
Uri policyNoticeLink,
int policyNoticeVersion,
bool isManagedIssuer)
{
this.target = target;
this.issuer = issuer;
this.parameters = parameters ?? new Collection<XmlElement> ();
this.policy_link = policyNoticeLink;
policy_ver = policyNoticeVersion;
is_managed = isManagedIssuer;
}
XmlElement target;
XmlElement issuer;
Collection<XmlElement> parameters;
Uri policy_link;
int policy_ver;
bool is_managed;
public bool IsManagedIssuer {
get { return is_managed; }
set { is_managed = value; }
}
public XmlElement Issuer {
get { return issuer; }
set { issuer = value; }
}
public Collection<XmlElement> Parameters {
get { return parameters; }
}
public Uri PolicyNoticeLink {
get { return policy_link; }
set { policy_link = value; }
}
public int PolicyNoticeVersion {
get { return policy_ver; }
set { policy_ver = value; }
}
public XmlElement Target {
get { return target; }
set { target = value; }
}
}
}

View File

@@ -0,0 +1,92 @@
//
// CardSpaceSelector.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005-2007 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IdentityModel.Tokens;
using System.Reflection;
using System.Xml;
namespace System.IdentityModel.Selectors
{
public static class CardSpaceSelector
{
static readonly Type impl_type;
static readonly object impl;
static readonly MethodInfo get_token, import, manage;
static CardSpaceSelector ()
{
string implName;
switch (Environment.GetEnvironmentVariable ("MONO_IDENTITY_SELECTOR_TYPE")) {
default:
implName = "Mono.ServiceModel.IdentitySelectors.Win32.CardSelectorClientWin32, Mono.ServiceModel.IdentitySelectors, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
break;
}
impl_type = Type.GetType (implName);
impl = Activator.CreateInstance (impl_type, new object [0]);
get_token = impl_type.GetMethod ("GetToken", new Type [] {
typeof (CardSpacePolicyElement []),
typeof (SecurityTokenSerializer)});
import = impl_type.GetMethod ("Import", new Type [] {
typeof (string)});
manage = impl_type.GetMethod ("Manage", new Type [0]);
}
[MonoTODO]
public static GenericXmlSecurityToken GetToken (
CardSpacePolicyElement [] policyChain,
SecurityTokenSerializer serializer)
{
return (GenericXmlSecurityToken) get_token.Invoke (impl, new object [] {policyChain, serializer});
}
public static GenericXmlSecurityToken GetToken (
XmlElement endpoint,
IEnumerable<XmlElement> policy,
XmlElement requiredRemoteTokenIssuer,
SecurityTokenSerializer serializer)
{
CardSpacePolicyElement pe = new CardSpacePolicyElement (endpoint, requiredRemoteTokenIssuer, new Collection<XmlElement> (new List<XmlElement> (policy)), null, 0, requiredRemoteTokenIssuer != null);
return GetToken (new CardSpacePolicyElement [] {pe}, serializer);
}
[MonoTODO]
public static void Import (string fileName)
{
import.Invoke (impl, new object [] {fileName});
}
[MonoTODO]
public static void Manage ()
{
manage.Invoke (impl, new object [0]);
}
}
}

View File

@@ -0,0 +1,102 @@
2007-05-11 Atsushi Enomoto <atsushi@ximian.com>
* CardspaceSelector.cs : so I forgot that I've updated namespace name
for win32 client impl.
2007-04-18 Atsushi Enomoto <atsushi@ximian.com>
Now the implementation is moved to Mono.ServiceModel.IdentitySelectors.
* CardSpaceSelector.cs : now it is reflection based.
* CardSpacePolicyElement.cs : removed NativePolicyElement usage.
* NativePolicyElement.cs
AsymmetricProofTokenSecurityKey.cs
CardSpaceProofToken.cs
NativeGenericXmlToken.cs
NativeInfocardCryptoHandle.cs
NativeInfocardHandleType.cs : removed.
2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
* CardSpacePolicyElement.cs, NativePolicyElement.cs :
fixed field names (privacy -> policy).
* CardSpaceSelector.cs : fixed error message (it's implemented).
IsManagedIssuer is true when IssuerAddress is null.
2007-04-13 Atsushi Enomoto <atsushi@ximian.com>
* NativePolicyElement.cs : issuer could be null (self-issued card).
* CardSpaceSelector.cs : throw correct exceptions.
* NativeGenericXmlToken : disposable. Create ProofToken (btw it is
not serializable with WSSecurityTokenSerializer).
* NativeInfocardCryptoHandle.cs : several implementation for
ProofToken creation. removed extra types.
* AsymmetricProofTokenSecurityKey.cs, CardSpaceProofToken.cs :
New files for ProofToken implementation.
They are largely unimplemented yet.
2007-04-12 Atsushi Enomoto <atsushi@ximian.com>
* NativeGenericXmlToken.cs, NativeInfocardCryptoHandle.cs :
they are marshalled as references. Some workarounds.
* CardSpaceSelector.cs : get int hresult.
* NativePolicyElement.cs : it is marshalled as struct.
2007-04-05 Atsushi Enomoto <atsushi@ximian.com>
* NativePolicyElement.cs, NativeGenericXmlToken.cs,
NativeInfocardCryptoHandle.cs :
set CharSet as Unicode in StructLayoutAttributes.
2007-04-04 Atsushi Enomoto <atsushi@ximian.com>
* CardSpacePolicyElement.cs : implemented.
* CardspaceSelector.cs : win32 implementation.
* NativePolicyElement.cs,
NativeGenericXmlToken.cs,
NativeInfocardCryptoHandle.cs,
NativeInfocardHandleType.cs : win32 interop structures.
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
* ServiceBusyException.cs, IdentityValidationException.cs,
UnsupportedPolicyOptionsException.cs,
PolicyValidationException.cs : new files.
* Dummy.cs : removed.
* StsCommunicationException.cs, UntrustedRecipientException.cs,
CardSpaceException.cs, ServiceNotStartedException.cs,
UserCancellationException.cs,
CardSpacePolicyElement.cs, CardSpaceSelector.cs :
fixed all API to July CTP.
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
* Dummy.cs, CardSpaceSelector.cs :
oh, is dependency on System.ServiceModel.dll removed??
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
* InfoCardException.cs, CardSpaceException.cs :
renamed former to latter.
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
* Dummy.cs, CardSpacePolicyElement.cs, CardSpaceSelector.cs :
added.
* InfoCardClient.cs : removed.
* InfoCardException.cs :
changed class name. File name soon to be updated.
2006-05-29 Atsushi Enomoto <atsushi@ximian.com>
* InfoCardClient.cs : build fix.
2005-11-20 Atsushi Enomoto <atsushi@ximian.com>
* InfocardTokenProvider.cs : removed old file (and is build blocker).
2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
* StsCommunicationException.cs, UntrustedRecipientException.cs
InfoCardTokenProvider.cs, InfoCardClient.cs
InfoCardException.cs, ServiceNotStartedException.cs
UserCancellationException.cs : initial checkin.

View File

@@ -0,0 +1,57 @@
//
// IdentityValidationException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class IdentityValidationException : Exception
{
public IdentityValidationException ()
: this ("IdentityValidation exception.")
{
}
public IdentityValidationException (string message)
: this (message, null)
{
}
protected IdentityValidationException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public IdentityValidationException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// PolicyValidationException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class PolicyValidationException : Exception
{
public PolicyValidationException ()
: this ("PolicyValidation exception.")
{
}
public PolicyValidationException (string message)
: this (message, null)
{
}
protected PolicyValidationException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public PolicyValidationException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// ServiceBusyException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class ServiceBusyException : Exception
{
public ServiceBusyException ()
: this ("ServiceBusy exception.")
{
}
public ServiceBusyException (string message)
: this (message, null)
{
}
protected ServiceBusyException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public ServiceBusyException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// ServiceNotStartedException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class ServiceNotStartedException : Exception
{
public ServiceNotStartedException ()
: this ("The InfoCard service is not started.")
{
}
public ServiceNotStartedException (string message)
: this (message, null)
{
}
protected ServiceNotStartedException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public ServiceNotStartedException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// StsCommunicationException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class StsCommunicationException : Exception
{
public StsCommunicationException ()
: this ("InfoCard communication exception.")
{
}
public StsCommunicationException (string message)
: this (message, null)
{
}
protected StsCommunicationException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public StsCommunicationException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// UnsupportedPolicyOptionsException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class UnsupportedPolicyOptionsException : Exception
{
public UnsupportedPolicyOptionsException ()
: this ("UnsupportedPolicyOptions exception.")
{
}
public UnsupportedPolicyOptionsException (string message)
: this (message, null)
{
}
protected UnsupportedPolicyOptionsException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public UnsupportedPolicyOptionsException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// UntrustedRecipientException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class UntrustedRecipientException : Exception
{
public UntrustedRecipientException ()
: this ("the InfoCard user cancelled the operation.")
{
}
public UntrustedRecipientException (string message)
: this (message, null)
{
}
protected UntrustedRecipientException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public UntrustedRecipientException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}

View File

@@ -0,0 +1,57 @@
//
// UserCancellationException.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
namespace System.IdentityModel.Selectors
{
[Serializable]
public class UserCancellationException : Exception
{
public UserCancellationException ()
: this ("the InfoCard user cancelled the operation.")
{
}
public UserCancellationException (string message)
: this (message, null)
{
}
protected UserCancellationException (SerializationInfo info,
StreamingContext context)
: base (info, context)
{
}
public UserCancellationException (string message, Exception innerException)
: base (message, innerException)
{
}
}
}