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
- ToolStripPanel.cs
- NestPullup.cs
- ManualResetEvent.cs
- XmlNodeChangedEventArgs.cs
- Win32Native.cs
- HtmlButton.cs
- SqlProfileProvider.cs
- SemanticResultKey.cs
- RuleDefinitions.cs
- EncryptedType.cs
- AVElementHelper.cs
- RawStylusInputCustomDataList.cs
- IndexedDataBuffer.cs
- SettingsAttributes.cs
- ResolvedKeyFrameEntry.cs
- CfgArc.cs
- AxisAngleRotation3D.cs
- Wildcard.cs
- Double.cs
- ChtmlTextWriter.cs
- GiveFeedbackEvent.cs
- DependencyPropertyChangedEventArgs.cs
- TimerElapsedEvenArgs.cs
- EdmItemCollection.cs
- JoinCqlBlock.cs
- CatalogPartChrome.cs
- MessagingDescriptionAttribute.cs
- BitmapSource.cs
- PinnedBufferMemoryStream.cs
- ThrowHelper.cs
- mongolianshape.cs
- HttpCachePolicyElement.cs
- DocComment.cs
- HtmlWindow.cs
- LineServicesRun.cs
- ADRole.cs
- HttpRawResponse.cs
- HttpsHostedTransportConfiguration.cs
- StringToken.cs
- Number.cs
- RuntimeVariableList.cs
- WebPartEventArgs.cs
- CollectionsUtil.cs
- StartUpEventArgs.cs
- HandleExceptionArgs.cs
- SignatureDescription.cs
- MdiWindowListItemConverter.cs
- DataControlFieldCell.cs
- Memoizer.cs
- arc.cs
- Char.cs
- ResXDataNode.cs
- Terminate.cs
- RSAPKCS1SignatureDeformatter.cs
- BlobPersonalizationState.cs
- X500Name.cs
- BinaryFormatterWriter.cs
- ImageBrush.cs
- EllipseGeometry.cs
- BufferCache.cs
- ModelItemDictionaryImpl.cs
- DotExpr.cs
- BinaryConverter.cs
- LightweightEntityWrapper.cs
- HttpWebResponse.cs
- ColorTransform.cs
- TypedTableBaseExtensions.cs
- OleDbMetaDataFactory.cs
- CacheDependency.cs
- XmlNamespaceManager.cs
- ArgIterator.cs
- XmlElementAttributes.cs
- SafeEventLogReadHandle.cs
- GeometryHitTestParameters.cs
- ArrayConverter.cs
- _SslSessionsCache.cs
- SerializationEventsCache.cs
- SqlDeflator.cs
- WebPartActionVerb.cs
- DetailsViewDeletedEventArgs.cs
- TextRunCache.cs
- RegexFCD.cs
- EmptyEnumerable.cs
- SendKeys.cs
- WindowsComboBox.cs
- WindowsHyperlink.cs
- CharacterHit.cs
- AppDomainAttributes.cs
- ParameterDataSourceExpression.cs
- log.cs
- SelectionProcessor.cs
- KeyEvent.cs
- WorkflowRuntimeSection.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- EventLog.cs
- WebEvents.cs
- httpapplicationstate.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- NullableDecimalMinMaxAggregationOperator.cs
- GuidTagList.cs