Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthenticationClaimResource.cs / 1 / SamlAuthenticationClaimResource.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.IdentityModel.Tokens
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IdentityModel.Claims;
using System.Runtime.Serialization;
using System.Text;
[DataContract]
public class SamlAuthenticationClaimResource
{
[DataMember]
DateTime authenticationInstant;
[DataMember]
string authenticationMethod;
ReadOnlyCollection authorityBindings;
[DataMember]
string dnsAddress;
[DataMember]
string ipAddress;
[OnDeserialized]
void OnDeserialized(StreamingContext ctx)
{
if (String.IsNullOrEmpty(authenticationMethod))
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authenticationMethod");
if (authorityBindings == null)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authorityBindings");
}
public SamlAuthenticationClaimResource(
DateTime authenticationInstant,
string authenticationMethod,
string dnsAddress,
string ipAddress
)
{
if (String.IsNullOrEmpty(authenticationMethod))
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authenticationMethod");
this.authenticationInstant = authenticationInstant;
this.authenticationMethod = authenticationMethod;
this.dnsAddress = dnsAddress;
this.ipAddress = ipAddress;
this.authorityBindings = (new List()).AsReadOnly();
}
public SamlAuthenticationClaimResource(
DateTime authenticationInstant,
string authenticationMethod,
string dnsAddress,
string ipAddress,
IEnumerable authorityBindings
)
: this(authenticationInstant, authenticationMethod, dnsAddress, ipAddress)
{
if (authorityBindings == null)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("authorityBindings"));
List tempList = new List();
foreach (SamlAuthorityBinding authorityBinding in authorityBindings)
{
if (authorityBinding != null)
tempList.Add(authorityBinding);
}
this.authorityBindings = tempList.AsReadOnly();
}
public SamlAuthenticationClaimResource(
DateTime authenticationInstant,
string authenticationMethod,
string dnsAddress,
string ipAddress,
ReadOnlyCollection authorityBindings
)
: this(authenticationInstant, authenticationMethod, dnsAddress, ipAddress)
{
if (authorityBindings == null)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("authorityBindings"));
this.authorityBindings = authorityBindings;
}
public DateTime AuthenticationInstant
{
get
{
return this.authenticationInstant;
}
}
public string AuthenticationMethod
{
get
{
return this.authenticationMethod;
}
}
public ReadOnlyCollection AuthorityBindings
{
get
{
return this.authorityBindings;
}
}
// this private member is for serialization only.
[DataMember]
List SamlAuthorityBindings
{
get
{
List sab = new List();
for (int i = 0; i
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignTimeResourceProviderFactoryAttribute.cs
- TableAdapterManagerNameHandler.cs
- MediaTimeline.cs
- panel.cs
- UIElementParaClient.cs
- ConfigXmlComment.cs
- TextParentUndoUnit.cs
- PostBackTrigger.cs
- GenericTypeParameterBuilder.cs
- ListCommandEventArgs.cs
- KeyPullup.cs
- HttpListenerContext.cs
- MethodRental.cs
- BitHelper.cs
- FamilyTypeface.cs
- ProcessStartInfo.cs
- SelectingProviderEventArgs.cs
- SHA512.cs
- counter.cs
- StylusEventArgs.cs
- EditorPart.cs
- DPAPIProtectedConfigurationProvider.cs
- SqlDataSourceTableQuery.cs
- SqlDataReaderSmi.cs
- JpegBitmapEncoder.cs
- Rect3D.cs
- ClientConfigurationHost.cs
- RC2.cs
- PathStreamGeometryContext.cs
- wgx_render.cs
- WebPartConnectionsCancelEventArgs.cs
- CodeTypeReference.cs
- _PooledStream.cs
- NotSupportedException.cs
- FloaterBaseParagraph.cs
- SvcMapFile.cs
- SingleAnimationBase.cs
- ListViewUpdateEventArgs.cs
- CustomGrammar.cs
- SplineKeyFrames.cs
- PingReply.cs
- IntranetCredentialPolicy.cs
- TemplateControlBuildProvider.cs
- StringInfo.cs
- CollectionConverter.cs
- VirtualizingStackPanel.cs
- SafeEventLogWriteHandle.cs
- InputLanguageCollection.cs
- WebPartTracker.cs
- TrustManagerMoreInformation.cs
- IndicShape.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- TimeStampChecker.cs
- TextAutomationPeer.cs
- DeferredReference.cs
- ToolStripSplitButton.cs
- SelectedDatesCollection.cs
- ToolboxItem.cs
- DocumentViewer.cs
- GenerateDerivedKeyRequest.cs
- DomainConstraint.cs
- Validator.cs
- HostVisual.cs
- LogStore.cs
- Debugger.cs
- Interlocked.cs
- ProgressBarHighlightConverter.cs
- InternalEnumValidatorAttribute.cs
- OdbcParameter.cs
- OracleConnectionString.cs
- CatalogPartChrome.cs
- HostProtectionPermission.cs
- DataSourceHelper.cs
- UIElement3D.cs
- ObjRef.cs
- Wow64ConfigurationLoader.cs
- CrossSiteScriptingValidation.cs
- SymmetricSecurityProtocol.cs
- XsltCompileContext.cs
- FormViewRow.cs
- SharedConnectionWorkflowTransactionService.cs
- LeafCellTreeNode.cs
- GAC.cs
- MenuStrip.cs
- Int16AnimationUsingKeyFrames.cs
- ColorKeyFrameCollection.cs
- ping.cs
- AppSettingsReader.cs
- QueryOptionExpression.cs
- AuthStoreRoleProvider.cs
- KnownBoxes.cs
- Splitter.cs
- WebPartHeaderCloseVerb.cs
- Storyboard.cs
- SecurityHeaderElementInferenceEngine.cs
- BooleanExpr.cs
- CodeDelegateCreateExpression.cs
- StatusBar.cs
- ZipIORawDataFileBlock.cs
- WpfPayload.cs