Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / X509WindowsSecurityToken.cs / 1 / X509WindowsSecurityToken.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.Security.Cryptography.X509Certificates; using System.Security.Principal; public class X509WindowsSecurityToken : X509SecurityToken { WindowsIdentity windowsIdentity; bool disposed = false; public X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity) : this(certificate, windowsIdentity, true) { } public X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string id) : this(certificate, windowsIdentity, id, true) { } internal X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, bool clone) : this(certificate, windowsIdentity, SecurityUniqueId.Create().Value, clone) { } internal X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string id, bool clone) : base(certificate, id, clone) { if (windowsIdentity == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windowsIdentity"); this.windowsIdentity = clone ? SecurityUtils.CloneWindowsIdentityIfNecessary(windowsIdentity) : windowsIdentity; } public WindowsIdentity WindowsIdentity { get { ThrowIfDisposed(); return this.windowsIdentity; } } public override void Dispose() { try { if (!this.disposed) { this.disposed = true; this.windowsIdentity.Dispose(); } } finally { base.Dispose(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsFormsDesignerOptionService.cs
- WrappedOptions.cs
- WebPartUtil.cs
- ResourceReader.cs
- WindowCollection.cs
- Container.cs
- SqlUserDefinedAggregateAttribute.cs
- DelimitedListTraceListener.cs
- PriorityChain.cs
- ThicknessKeyFrameCollection.cs
- PolicyLevel.cs
- webeventbuffer.cs
- ConstraintManager.cs
- EntityType.cs
- AddInController.cs
- BufferModesCollection.cs
- RepeaterItemCollection.cs
- _SslState.cs
- shaperfactoryquerycacheentry.cs
- DataFormats.cs
- PathFigureCollection.cs
- _ConnectOverlappedAsyncResult.cs
- StringPropertyBuilder.cs
- X509Certificate2Collection.cs
- PageEventArgs.cs
- XmlTextReaderImplHelpers.cs
- CurrentChangedEventManager.cs
- DataBinder.cs
- ComboBoxRenderer.cs
- EntryIndex.cs
- UidManager.cs
- DesignerActionVerbItem.cs
- GraphicsPathIterator.cs
- ValueHandle.cs
- ConfigurationSettings.cs
- LocalizationComments.cs
- CodeObjectCreateExpression.cs
- NamedObject.cs
- ToolStripOverflowButton.cs
- ResourceContainer.cs
- XmlStreamNodeWriter.cs
- SqlServer2KCompatibilityAnnotation.cs
- EncodingNLS.cs
- TabItem.cs
- CriticalFinalizerObject.cs
- cookiecollection.cs
- FontCacheUtil.cs
- _UriSyntax.cs
- ConfigurationValidatorAttribute.cs
- DataColumnSelectionConverter.cs
- TextEditorTables.cs
- CustomErrorsSectionWrapper.cs
- KeyConstraint.cs
- FilterElement.cs
- SoapSchemaImporter.cs
- ConfigurationManagerHelperFactory.cs
- UntypedNullExpression.cs
- HttpRequestBase.cs
- XmlHierarchyData.cs
- DiscoveryDocumentReference.cs
- Stacktrace.cs
- Inflater.cs
- ToolStripScrollButton.cs
- BamlResourceDeserializer.cs
- DesigntimeLicenseContext.cs
- GridProviderWrapper.cs
- XsdDataContractImporter.cs
- TableCellCollection.cs
- PolygonHotSpot.cs
- ObjectConverter.cs
- DoubleLink.cs
- Stroke.cs
- MaterialCollection.cs
- HMACSHA1.cs
- DataGridViewCellCollection.cs
- PolicyVersionConverter.cs
- AnimationClock.cs
- WebDisplayNameAttribute.cs
- LayoutInformation.cs
- SimpleType.cs
- StylusOverProperty.cs
- OletxResourceManager.cs
- DesignerHost.cs
- ClientRolePrincipal.cs
- HtmlWindowCollection.cs
- ClickablePoint.cs
- InputGestureCollection.cs
- DetailsViewPageEventArgs.cs
- CancellationTokenSource.cs
- EntityCommandExecutionException.cs
- AppLevelCompilationSectionCache.cs
- TextTreeTextBlock.cs
- WeakEventManager.cs
- EndpointInfoCollection.cs
- FileSystemWatcher.cs
- ListViewInsertedEventArgs.cs
- AttachedAnnotation.cs
- SHA256.cs
- WebServiceData.cs
- Color.cs