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; ReadOnlyCollectionauthorityBindings; [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
- SafeFileMapViewHandle.cs
- CircleHotSpot.cs
- ByteRangeDownloader.cs
- DefaultProxySection.cs
- _LoggingObject.cs
- SafeTokenHandle.cs
- UdpTransportSettings.cs
- AppearanceEditorPart.cs
- ConfigUtil.cs
- AuthenticationService.cs
- Expression.cs
- _DigestClient.cs
- UnionCodeGroup.cs
- PerformanceCounterManager.cs
- XmlQuerySequence.cs
- WindowsRegion.cs
- NodeLabelEditEvent.cs
- XsltCompileContext.cs
- DataBinding.cs
- DateTimeFormatInfo.cs
- ParseElementCollection.cs
- MgmtConfigurationRecord.cs
- ClientProxyGenerator.cs
- ExpressionReplacer.cs
- XmlHierarchyData.cs
- LocalizationComments.cs
- Vector3DAnimation.cs
- KerberosRequestorSecurityToken.cs
- GeometryDrawing.cs
- HtmlUtf8RawTextWriter.cs
- SmtpNtlmAuthenticationModule.cs
- PageAsyncTask.cs
- GridViewUpdateEventArgs.cs
- ListBoxAutomationPeer.cs
- DesignerForm.cs
- TextRunCacheImp.cs
- HttpHandler.cs
- HandlerBase.cs
- TripleDES.cs
- VisualTreeUtils.cs
- DefaultProfileManager.cs
- ConnectionManagementSection.cs
- WebPartManagerInternals.cs
- MemoryMappedFileSecurity.cs
- NavigationPropertyEmitter.cs
- IconConverter.cs
- ScriptResourceAttribute.cs
- CompensationDesigner.cs
- MimeTypePropertyAttribute.cs
- Nullable.cs
- ScaleTransform.cs
- TraceRecord.cs
- TextSelection.cs
- SoapAttributeOverrides.cs
- XmlElementList.cs
- DataKey.cs
- ToolStrip.cs
- GorillaCodec.cs
- MenuItem.cs
- SecurityManager.cs
- DateTimeFormatInfoScanner.cs
- CompositionTarget.cs
- AutomationProperties.cs
- WebPartManagerInternals.cs
- RemotingAttributes.cs
- XhtmlBasicTextBoxAdapter.cs
- SizeIndependentAnimationStorage.cs
- ArgIterator.cs
- Soap.cs
- MappableObjectManager.cs
- Win32PrintDialog.cs
- BounceEase.cs
- TemplatePartAttribute.cs
- PageContentCollection.cs
- MessageHeaderT.cs
- WebZoneDesigner.cs
- _SecureChannel.cs
- EdmProperty.cs
- ApplicationContext.cs
- TraceProvider.cs
- ParseHttpDate.cs
- DataGridViewRowPrePaintEventArgs.cs
- Number.cs
- PointLightBase.cs
- HttpCachePolicy.cs
- LicenseProviderAttribute.cs
- ToolStripSplitStackLayout.cs
- ErrorProvider.cs
- ExecutionEngineException.cs
- VideoDrawing.cs
- DropSource.cs
- Attributes.cs
- ApplicationException.cs
- WebPartHeaderCloseVerb.cs
- SqlDataSourceView.cs
- InstanceKey.cs
- PrePostDescendentsWalker.cs
- StateManagedCollection.cs
- MemberNameValidator.cs
- CombinedGeometry.cs