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
- DataGridViewCellMouseEventArgs.cs
- FontEmbeddingManager.cs
- ForeignKeyConstraint.cs
- Rijndael.cs
- RowToParametersTransformer.cs
- CustomAttribute.cs
- OptimizedTemplateContent.cs
- AttributeProviderAttribute.cs
- XmlSchemaSimpleType.cs
- SimpleBitVector32.cs
- TextTreeText.cs
- ScalarConstant.cs
- TextCompositionEventArgs.cs
- PageSettings.cs
- ConvertersCollection.cs
- OracleDataReader.cs
- SmtpTransport.cs
- ProxyAttribute.cs
- TypeDescriptionProvider.cs
- WebPartDescription.cs
- ContentValidator.cs
- DetailsViewInsertedEventArgs.cs
- TemplateXamlTreeBuilder.cs
- FactoryGenerator.cs
- TaiwanLunisolarCalendar.cs
- GregorianCalendarHelper.cs
- OraclePermissionAttribute.cs
- CreateUserErrorEventArgs.cs
- WebMessageEncodingElement.cs
- ItemsPanelTemplate.cs
- DesignerHierarchicalDataSourceView.cs
- XmlResolver.cs
- CompilerState.cs
- DetailsViewRow.cs
- WebPartMenu.cs
- ClientRoleProvider.cs
- TableCellCollection.cs
- ToolStripHighContrastRenderer.cs
- CodeTypeReferenceExpression.cs
- XmlSchemaExternal.cs
- ExpressionParser.cs
- WebPartPersonalization.cs
- CaseStatementProjectedSlot.cs
- RenderContext.cs
- XmlArrayItemAttribute.cs
- StrongBox.cs
- SamlAction.cs
- SoapMessage.cs
- GradientStop.cs
- ReflectEventDescriptor.cs
- CanExecuteRoutedEventArgs.cs
- EntityDataSourceColumn.cs
- SharedPersonalizationStateInfo.cs
- WebControlParameterProxy.cs
- XmlTypeAttribute.cs
- RegisteredScript.cs
- SearchForVirtualItemEventArgs.cs
- XmlElementCollection.cs
- ComponentResourceKeyConverter.cs
- DashStyle.cs
- ByteAnimationUsingKeyFrames.cs
- SpecialNameAttribute.cs
- ChangeBlockUndoRecord.cs
- CompositeControlDesigner.cs
- ModelService.cs
- XmlNavigatorStack.cs
- DurationConverter.cs
- TransactionChannelFactory.cs
- FrameworkContentElement.cs
- WinFormsUtils.cs
- ExtractorMetadata.cs
- DataGridCommandEventArgs.cs
- HttpFileCollection.cs
- ProfessionalColors.cs
- ContainerFilterService.cs
- HealthMonitoringSectionHelper.cs
- DESCryptoServiceProvider.cs
- ControlUtil.cs
- UpDownEvent.cs
- DocumentXPathNavigator.cs
- CryptoProvider.cs
- ExpressionBuilder.cs
- HostingEnvironmentSection.cs
- CodeEntryPointMethod.cs
- BitmapEncoder.cs
- DispatcherTimer.cs
- QueryReaderSettings.cs
- HitTestParameters3D.cs
- XmlSchemaInferenceException.cs
- AdRotator.cs
- BypassElementCollection.cs
- LinkAreaEditor.cs
- PkcsMisc.cs
- StrokeNodeData.cs
- ElementHostPropertyMap.cs
- IncrementalCompileAnalyzer.cs
- XslUrlEditor.cs
- XamlToRtfWriter.cs
- SessionPageStateSection.cs
- BitmapFrameDecode.cs