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
- FormsAuthenticationModule.cs
- TreeBuilder.cs
- GreenMethods.cs
- DataGridViewColumnConverter.cs
- SubclassTypeValidator.cs
- _BaseOverlappedAsyncResult.cs
- WebPermission.cs
- glyphs.cs
- FreeFormDragDropManager.cs
- _LocalDataStore.cs
- GeneralTransform.cs
- XmlValidatingReaderImpl.cs
- ToolZone.cs
- ScriptHandlerFactory.cs
- XhtmlBasicLinkAdapter.cs
- PasswordRecoveryAutoFormat.cs
- StringUtil.cs
- ArraySegment.cs
- StrokeIntersection.cs
- NullableDecimalAverageAggregationOperator.cs
- SqlServer2KCompatibilityCheck.cs
- CheckBoxRenderer.cs
- QilLoop.cs
- ColorTypeConverter.cs
- MetricEntry.cs
- CngUIPolicy.cs
- AssociationType.cs
- Publisher.cs
- SqlDataSourceQueryEditor.cs
- HtmlHistory.cs
- CookieParameter.cs
- PipelineModuleStepContainer.cs
- StreamUpgradeBindingElement.cs
- TemplateBuilder.cs
- UnsafeNativeMethods.cs
- Parsers.cs
- Automation.cs
- InputScopeAttribute.cs
- ContainerSelectorBehavior.cs
- WebPartConnectionsCloseVerb.cs
- _LocalDataStoreMgr.cs
- ResourceIDHelper.cs
- XmlSerializerFactory.cs
- QuaternionConverter.cs
- PasswordBox.cs
- CharEnumerator.cs
- CollectionDataContract.cs
- ExtractorMetadata.cs
- EditorZoneBase.cs
- MD5.cs
- RuntimeHelpers.cs
- RuntimeResourceSet.cs
- BrushConverter.cs
- DynamicDiscoSearcher.cs
- DbExpressionVisitor.cs
- ConstrainedDataObject.cs
- ProbeDuplexCD1AsyncResult.cs
- InvalidWMPVersionException.cs
- DesignerActionVerbItem.cs
- FormViewInsertEventArgs.cs
- LoginName.cs
- PointLightBase.cs
- AssemblyCache.cs
- DataGridViewDataErrorEventArgs.cs
- ServicesExceptionNotHandledEventArgs.cs
- DropShadowEffect.cs
- RequestCacheManager.cs
- FailedToStartupUIException.cs
- LayoutEvent.cs
- BuildProviderAppliesToAttribute.cs
- AttributeTableBuilder.cs
- StreamGeometry.cs
- COM2TypeInfoProcessor.cs
- SmtpCommands.cs
- ServiceDesigner.cs
- SQLInt64.cs
- TaskResultSetter.cs
- QilFactory.cs
- WebPartCatalogAddVerb.cs
- MobileControlsSectionHelper.cs
- XsltSettings.cs
- InstalledFontCollection.cs
- DrawingGroup.cs
- ExtensionWindowHeader.cs
- NotificationContext.cs
- BrowserDefinition.cs
- FileEnumerator.cs
- HuffCodec.cs
- BulletedList.cs
- ManifestResourceInfo.cs
- TakeOrSkipQueryOperator.cs
- WebRequestModuleElement.cs
- TemplatePagerField.cs
- SevenBitStream.cs
- ResourcePart.cs
- TableCell.cs
- HttpListenerRequest.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewElement.cs
- NamedPipeTransportManager.cs