Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthenticationClaimResource.cs / 1305376 / 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
- X509UI.cs
- PackageProperties.cs
- GacUtil.cs
- Panel.cs
- WizardForm.cs
- processwaithandle.cs
- WebScriptMetadataInstanceContextProvider.cs
- WorkerRequest.cs
- TTSEngineProxy.cs
- _ScatterGatherBuffers.cs
- LinkClickEvent.cs
- login.cs
- DynamicEndpoint.cs
- TimeIntervalCollection.cs
- Socket.cs
- ServicePointManagerElement.cs
- AuthenticationModulesSection.cs
- FilteredSchemaElementLookUpTable.cs
- XamlPointCollectionSerializer.cs
- CodeComment.cs
- GenericIdentity.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ImageMap.cs
- ServiceBehaviorAttribute.cs
- CodeTryCatchFinallyStatement.cs
- SourceChangedEventArgs.cs
- CellIdBoolean.cs
- Popup.cs
- WsiProfilesElement.cs
- SoapProtocolImporter.cs
- ResourceDescriptionAttribute.cs
- ImageAnimator.cs
- FixedBufferAttribute.cs
- Transform.cs
- SystemIcmpV6Statistics.cs
- ColorBlend.cs
- BuildProvider.cs
- CustomErrorsSection.cs
- ExecutionEngineException.cs
- PenCursorManager.cs
- SHA256Managed.cs
- ToolStripDropDown.cs
- ApplicationSettingsBase.cs
- DesignerDataTable.cs
- GridViewSelectEventArgs.cs
- AutomationPeer.cs
- RsaSecurityToken.cs
- KeyMatchBuilder.cs
- XamlStackWriter.cs
- CurrencyWrapper.cs
- TimeSpanStorage.cs
- LOSFormatter.cs
- TreeBuilderBamlTranslator.cs
- XmlSerializer.cs
- MethodToken.cs
- Exceptions.cs
- cache.cs
- DataRowView.cs
- RegistryPermission.cs
- State.cs
- Vector.cs
- ProfileGroupSettings.cs
- XmlObjectSerializer.cs
- NominalTypeEliminator.cs
- DiagnosticsConfiguration.cs
- GeneralTransform3DTo2DTo3D.cs
- _LazyAsyncResult.cs
- CodeExporter.cs
- PublisherMembershipCondition.cs
- MetadataWorkspace.cs
- WindowsIdentity.cs
- BufferBuilder.cs
- XmlRootAttribute.cs
- ServiceHttpHandlerFactory.cs
- ListViewItemMouseHoverEvent.cs
- VectorConverter.cs
- ArgumentNullException.cs
- ReservationNotFoundException.cs
- DefaultCompensation.cs
- MyContact.cs
- XmlReflectionMember.cs
- SetStoryboardSpeedRatio.cs
- ObjectQueryState.cs
- LinearGradientBrush.cs
- SqlProcedureAttribute.cs
- CacheAxisQuery.cs
- SoapParser.cs
- EqualityComparer.cs
- HttpPostServerProtocol.cs
- SizeFConverter.cs
- TextBox.cs
- DataList.cs
- XmlDocumentFieldSchema.cs
- ClassHandlersStore.cs
- FileEnumerator.cs
- SystemInformation.cs
- SafeProcessHandle.cs
- DocumentPageTextView.cs
- TextEditorMouse.cs
- GeometryValueSerializer.cs