Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1305600 / 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: IgorBel: 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. // // // 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: IgorBel: 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSerializableReader.cs
- TimeSpanOrInfiniteConverter.cs
- RowToParametersTransformer.cs
- RIPEMD160.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ErrorHandler.cs
- ConsumerConnectionPointCollection.cs
- ModifiableIteratorCollection.cs
- NotImplementedException.cs
- EditorZone.cs
- NullExtension.cs
- ConnectionStringSettings.cs
- CriticalFinalizerObject.cs
- RoleServiceManager.cs
- SecurityVersion.cs
- Calendar.cs
- PocoEntityKeyStrategy.cs
- SafeNativeMethods.cs
- StateItem.cs
- SecurityTokenAuthenticator.cs
- SqlGenericUtil.cs
- SqlCacheDependencySection.cs
- AccessText.cs
- TripleDES.cs
- WebPartMovingEventArgs.cs
- Single.cs
- Track.cs
- SqlNode.cs
- SelectionGlyphBase.cs
- GridViewUpdatedEventArgs.cs
- DataGridViewRowCollection.cs
- DataStorage.cs
- iisPickupDirectory.cs
- BatchParser.cs
- DiscoveryReferences.cs
- ConsoleCancelEventArgs.cs
- MultiByteCodec.cs
- BitmapMetadataBlob.cs
- HostProtectionException.cs
- ResourcePermissionBaseEntry.cs
- DataRowCollection.cs
- DataGridRowHeaderAutomationPeer.cs
- AmbiguousMatchException.cs
- InternalCompensate.cs
- ImageListImage.cs
- SoapExtensionTypeElement.cs
- SQLRoleProvider.cs
- ListSortDescriptionCollection.cs
- PrintEvent.cs
- IdnElement.cs
- ByteRangeDownloader.cs
- ManagedWndProcTracker.cs
- MapPathBasedVirtualPathProvider.cs
- MouseEventArgs.cs
- TextFormatterContext.cs
- UniqueConstraint.cs
- BitmapEffectvisualstate.cs
- CommonObjectSecurity.cs
- XmlWellformedWriter.cs
- MissingSatelliteAssemblyException.cs
- BindingSource.cs
- Boolean.cs
- uribuilder.cs
- safex509handles.cs
- GuidelineSet.cs
- SQLByte.cs
- securitymgrsite.cs
- SqlMethodTransformer.cs
- VisualBasicValue.cs
- Bidi.cs
- Floater.cs
- DataServiceProcessingPipeline.cs
- StrokeDescriptor.cs
- MenuItemCollection.cs
- ProgressBarAutomationPeer.cs
- UnsupportedPolicyOptionsException.cs
- ToolStripDropDownMenu.cs
- SnapshotChangeTrackingStrategy.cs
- ToolStripPanelCell.cs
- EventArgs.cs
- TextDecorationCollection.cs
- InsufficientMemoryException.cs
- HierarchicalDataBoundControl.cs
- EdgeProfileValidation.cs
- OutputCacheSection.cs
- TableHeaderCell.cs
- Int32.cs
- ScriptServiceAttribute.cs
- DiscardableAttribute.cs
- Header.cs
- SecurityMessageProperty.cs
- GridViewCommandEventArgs.cs
- BulletChrome.cs
- Substitution.cs
- Int32EqualityComparer.cs
- rsa.cs
- ContentElement.cs
- CommonObjectSecurity.cs
- DataTemplateKey.cs
- ResumeStoryboard.cs