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
- ListViewDeletedEventArgs.cs
- Camera.cs
- datacache.cs
- CompModSwitches.cs
- DocumentReferenceCollection.cs
- PerformanceCounterManager.cs
- ParallelEnumerableWrapper.cs
- DataGridViewCellLinkedList.cs
- _ListenerAsyncResult.cs
- MediaContextNotificationWindow.cs
- SynchronizingStream.cs
- WebRequestModuleElement.cs
- WebConfigurationHostFileChange.cs
- SplineKeyFrames.cs
- SqlMethodCallConverter.cs
- RenderOptions.cs
- BaseCollection.cs
- DataSpaceManager.cs
- ClientFormsIdentity.cs
- FileSystemWatcher.cs
- RC2.cs
- CaseInsensitiveHashCodeProvider.cs
- TCEAdapterGenerator.cs
- XmlReturnWriter.cs
- ListView.cs
- FileAuthorizationModule.cs
- ForeignConstraint.cs
- TextPointer.cs
- XPathScanner.cs
- LineServicesCallbacks.cs
- WorkflowQueuingService.cs
- DigitShape.cs
- ApplicationBuildProvider.cs
- BitmapEffectState.cs
- HostingPreferredMapPath.cs
- ServerProtocol.cs
- WindowsSidIdentity.cs
- ModelPropertyDescriptor.cs
- TabControl.cs
- ProjectionQueryOptionExpression.cs
- ControlIdConverter.cs
- _ListenerAsyncResult.cs
- Matrix3D.cs
- InvalidFilterCriteriaException.cs
- UnaryExpressionHelper.cs
- ListControlActionList.cs
- QueueProcessor.cs
- GeneratedCodeAttribute.cs
- BeginStoryboard.cs
- SyndicationDeserializer.cs
- DataGridViewRowConverter.cs
- FontFaceLayoutInfo.cs
- HtmlTable.cs
- _Events.cs
- InlineUIContainer.cs
- CachedCompositeFamily.cs
- DeflateInput.cs
- ChildTable.cs
- ToolboxComponentsCreatingEventArgs.cs
- ActivityTrace.cs
- DesignerToolStripControlHost.cs
- InitializationEventAttribute.cs
- isolationinterop.cs
- Monitor.cs
- ComponentEditorForm.cs
- XPathDocumentIterator.cs
- DSASignatureDeformatter.cs
- SymbolResolver.cs
- EventSourceCreationData.cs
- PagesChangedEventArgs.cs
- EdmType.cs
- SoapInteropTypes.cs
- WebControlAdapter.cs
- Model3D.cs
- CreationContext.cs
- XmlElementList.cs
- WebSysDescriptionAttribute.cs
- ActiveXHelper.cs
- Model3DGroup.cs
- DesignerLinkAdapter.cs
- PrincipalPermission.cs
- WindowsListViewItem.cs
- WebDisplayNameAttribute.cs
- ErrorWrapper.cs
- TimeSpanParse.cs
- SectionXmlInfo.cs
- XmlQueryType.cs
- TextSyndicationContentKindHelper.cs
- QilStrConcatenator.cs
- ExtendedPropertyCollection.cs
- WebPartMenu.cs
- TextEditorCharacters.cs
- ConfigurationManagerHelper.cs
- PairComparer.cs
- ProfilePropertySettings.cs
- WebPartAuthorizationEventArgs.cs
- BitStack.cs
- RegexGroup.cs
- CompiledQuery.cs
- Camera.cs