Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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: 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
- DataGridViewTopRowAccessibleObject.cs
- ErrorTableItemStyle.cs
- CodeAttributeArgumentCollection.cs
- Listbox.cs
- StsCommunicationException.cs
- DecoratedNameAttribute.cs
- ProcessModuleCollection.cs
- _NTAuthentication.cs
- CodeSubDirectory.cs
- ReadOnlyCollectionBase.cs
- EventProviderTraceListener.cs
- AggregateNode.cs
- UInt16.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TcpServerChannel.cs
- cryptoapiTransform.cs
- SmiRecordBuffer.cs
- TableRow.cs
- CfgParser.cs
- BitmapEffectGroup.cs
- CreateUserWizardStep.cs
- XmlSchemaSimpleTypeUnion.cs
- PasswordPropertyTextAttribute.cs
- WebBrowserNavigatedEventHandler.cs
- DrawingBrush.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlConverter.cs
- XmlReader.cs
- SliderAutomationPeer.cs
- QueryConverter.cs
- SingleStorage.cs
- TextServicesProperty.cs
- RoleGroupCollection.cs
- BookmarkEventArgs.cs
- WebOperationContext.cs
- PropertyValueChangedEvent.cs
- TransformPattern.cs
- ReflectionUtil.cs
- FileVersionInfo.cs
- StylusButtonCollection.cs
- FloaterBaseParaClient.cs
- DataGridRowAutomationPeer.cs
- CollectionView.cs
- ObjectQueryExecutionPlan.cs
- AbsoluteQuery.cs
- TemplatePartAttribute.cs
- DialogResultConverter.cs
- SiteMapNode.cs
- ValueExpressions.cs
- PointConverter.cs
- DataGridRow.cs
- InvalidEnumArgumentException.cs
- DataObjectEventArgs.cs
- Sorting.cs
- FormsAuthenticationUser.cs
- UnSafeCharBuffer.cs
- WebPartHelpVerb.cs
- StructuredTypeEmitter.cs
- StructuredTypeInfo.cs
- ItemsChangedEventArgs.cs
- PathFigureCollectionConverter.cs
- DataView.cs
- coordinatorscratchpad.cs
- ScrollData.cs
- ComponentResourceKeyConverter.cs
- odbcmetadatafactory.cs
- PersistChildrenAttribute.cs
- AdRotator.cs
- FamilyMapCollection.cs
- BinaryObjectReader.cs
- IntegrationExceptionEventArgs.cs
- AspCompat.cs
- DefaultSection.cs
- NameValueConfigurationElement.cs
- SelectionListComponentEditor.cs
- XmlSchemaObjectCollection.cs
- Model3DGroup.cs
- CryptoProvider.cs
- PipelineModuleStepContainer.cs
- BamlMapTable.cs
- DirectionalLight.cs
- Model3D.cs
- XmlTextAttribute.cs
- Unit.cs
- InvalidFilterCriteriaException.cs
- RegexWorker.cs
- SynchronizationContextHelper.cs
- AssertSection.cs
- OutputCacheModule.cs
- TypeUtils.cs
- ActiveXHost.cs
- HostedHttpTransportManager.cs
- XPathNodeInfoAtom.cs
- SslStream.cs
- DTCTransactionManager.cs
- SqlStream.cs
- VisualStyleElement.cs
- XmlCompatibilityReader.cs
- WorkflowApplicationUnloadedException.cs
- DecoderFallback.cs