Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1 / RightNameExpirationInfoPair.cs
//------------------------------------------------------------------------------ // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: // Structure that keeps Right name as a string not as enum, so it can be used to carry // names that are not part of the ContentRights enum. // // History: // 01/31/2006: [....]: Initial implementation. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Security; namespace MS.Internal.Security.RightsManagement { ////// Critical: This class exposes access to methods that eventually do one or more of the the following /// 1. call into unmanaged code /// 2. affects state/data that will eventually cross over unmanaged code boundary /// 3. Return some RM related information which is considered private /// [SecurityCritical(SecurityCriticalScope.Everything)] internal class RightNameExpirationInfoPair { internal RightNameExpirationInfoPair (string rightName, DateTime validFrom, DateTime validUntil) { Debug.Assert(rightName != null); _rightName = rightName; _validFrom = validFrom; _validUntil = validUntil; } ////// We keep Right as a string for forward compatibility in case new /// rights get invented we would like be able to encrypt decrypt using them, /// although without ability to enumerate them /// internal string RightName { get { return _rightName; } } ////// The starting validity time, in UTC time /// internal DateTime ValidFrom { get { return _validFrom; } } ////// The ending validity time, in UTC time /// internal DateTime ValidUntil { get { return _validUntil; } } private string _rightName; private DateTime _validFrom; private DateTime _validUntil; } } // 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
- ArcSegment.cs
- ValueHandle.cs
- CodeSnippetExpression.cs
- SqlCacheDependencySection.cs
- BinaryUtilClasses.cs
- LoginView.cs
- handlecollector.cs
- ToolStripRenderer.cs
- FeatureSupport.cs
- ToolBarPanel.cs
- PropertyInformation.cs
- UnsafeNativeMethods.cs
- SizeAnimationBase.cs
- IncrementalHitTester.cs
- Bind.cs
- FontEmbeddingManager.cs
- TransformCryptoHandle.cs
- WebAdminConfigurationHelper.cs
- ByteKeyFrameCollection.cs
- DocumentManager.cs
- BitmapMetadataEnumerator.cs
- SafeCryptHandles.cs
- DataGridViewAutoSizeModeEventArgs.cs
- IApplicationTrustManager.cs
- SmtpSection.cs
- EncoderNLS.cs
- SqlNodeTypeOperators.cs
- BuildProvider.cs
- Base64Decoder.cs
- XmlNodeReader.cs
- ProfilePropertyMetadata.cs
- ConfigsHelper.cs
- StrongNameKeyPair.cs
- FtpWebResponse.cs
- _NetworkingPerfCounters.cs
- StackOverflowException.cs
- HandleCollector.cs
- SafeViewOfFileHandle.cs
- ToolboxCategoryItems.cs
- SaveLedgerEntryRequest.cs
- KeyboardEventArgs.cs
- LogRestartAreaEnumerator.cs
- PropertyDescriptorCollection.cs
- ProfilePropertySettings.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- CodeSubDirectory.cs
- TrackBarRenderer.cs
- GeneralTransform3DGroup.cs
- HttpModuleActionCollection.cs
- XmlNamedNodeMap.cs
- ChainOfDependencies.cs
- InlineCollection.cs
- VectorAnimationBase.cs
- NumberFormatInfo.cs
- remotingproxy.cs
- SafePEFileHandle.cs
- DefaultTraceListener.cs
- AutomationElement.cs
- MessageSecurityOverTcp.cs
- MulticastDelegate.cs
- UpdateProgress.cs
- ThreadStartException.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MemberRelationshipService.cs
- RichTextBox.cs
- WebControlsSection.cs
- HttpFileCollection.cs
- ObfuscationAttribute.cs
- ModuleBuilderData.cs
- PerspectiveCamera.cs
- ScriptServiceAttribute.cs
- OutputCacheSettings.cs
- SchemaTableOptionalColumn.cs
- XmlLangPropertyAttribute.cs
- DesignTimeParseData.cs
- GestureRecognitionResult.cs
- X509Certificate2.cs
- ObjectDataSourceFilteringEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- ArrayMergeHelper.cs
- PerformanceCounter.cs
- Profiler.cs
- ThreadStateException.cs
- TypeUsageBuilder.cs
- StateDesigner.CommentLayoutGlyph.cs
- ClientSettingsSection.cs
- ProcessRequestArgs.cs
- PermissionSetTriple.cs
- SynchronizationFilter.cs
- BlurBitmapEffect.cs
- FragmentNavigationEventArgs.cs
- SmtpAuthenticationManager.cs
- PerspectiveCamera.cs
- VirtualizingStackPanel.cs
- CounterSampleCalculator.cs
- HostedAspNetEnvironment.cs
- LocalValueEnumerator.cs
- TreeBuilder.cs
- SQLInt64Storage.cs
- Cursor.cs