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
- DataTableClearEvent.cs
- AspNetPartialTrustHelpers.cs
- AuthenticatedStream.cs
- FuncCompletionCallbackWrapper.cs
- SystemResourceKey.cs
- BaseUriHelper.cs
- TreeNodeStyleCollection.cs
- DetailsViewDeletedEventArgs.cs
- SkinBuilder.cs
- selecteditemcollection.cs
- DoubleLink.cs
- XmlHierarchyData.cs
- LinqDataSourceStatusEventArgs.cs
- WindowAutomationPeer.cs
- CodeRegionDirective.cs
- ObjectSet.cs
- HandoffBehavior.cs
- DelayedRegex.cs
- _NegoState.cs
- Helper.cs
- LayoutInformation.cs
- AnnotationComponentChooser.cs
- EventMap.cs
- InkPresenter.cs
- Ray3DHitTestResult.cs
- CodeCastExpression.cs
- ViewgenContext.cs
- SystemResources.cs
- DataRelationPropertyDescriptor.cs
- BinaryConverter.cs
- HistoryEventArgs.cs
- ItemType.cs
- RowToParametersTransformer.cs
- FileInfo.cs
- DataGrid.cs
- DynamicResourceExtension.cs
- TypeConstant.cs
- TextBoxView.cs
- MaskDescriptor.cs
- WindowsListViewItemStartMenu.cs
- Assembly.cs
- TextRange.cs
- Section.cs
- ProtocolElement.cs
- MenuBase.cs
- BitmapEffectCollection.cs
- XsdBuilder.cs
- CalendarDesigner.cs
- RankException.cs
- TransformationRules.cs
- CodeFieldReferenceExpression.cs
- StatusBarDesigner.cs
- InkPresenter.cs
- DataSourceCache.cs
- SuppressIldasmAttribute.cs
- MSHTMLHost.cs
- DataConnectionHelper.cs
- WebPartMinimizeVerb.cs
- ExtendedProtectionPolicy.cs
- RotateTransform3D.cs
- SchemaTypeEmitter.cs
- ScriptingWebServicesSectionGroup.cs
- AppSettingsExpressionEditor.cs
- WpfKnownMemberInvoker.cs
- XmlDsigSep2000.cs
- Cloud.cs
- DateTimeUtil.cs
- DataServiceEntityAttribute.cs
- MemberDescriptor.cs
- BooleanFacetDescriptionElement.cs
- SelectionHighlightInfo.cs
- HttpProfileGroupBase.cs
- GridEntryCollection.cs
- RuntimeHandles.cs
- CompiledRegexRunner.cs
- DefaultObjectMappingItemCollection.cs
- WebScriptMetadataMessageEncoderFactory.cs
- HttpProfileBase.cs
- Msec.cs
- XmlLoader.cs
- ReadOnlyPropertyMetadata.cs
- SerializerProvider.cs
- OrderPreservingPipeliningMergeHelper.cs
- ComplexBindingPropertiesAttribute.cs
- ClockController.cs
- SchemaCollectionPreprocessor.cs
- CacheAxisQuery.cs
- DocumentSequenceHighlightLayer.cs
- ButtonBase.cs
- DataGridViewToolTip.cs
- StateFinalizationDesigner.cs
- ReflectionTypeLoadException.cs
- UserControlParser.cs
- EntityType.cs
- SatelliteContractVersionAttribute.cs
- RowVisual.cs
- SymbolDocumentInfo.cs
- MobileUserControlDesigner.cs
- EncryptedKeyIdentifierClause.cs
- DisplayInformation.cs