Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SplineKeyFrames.cs
- ReadWriteObjectLock.cs
- ControlBuilderAttribute.cs
- Activity.cs
- ListViewCancelEventArgs.cs
- ToolBar.cs
- DocumentCollection.cs
- ListViewDeleteEventArgs.cs
- RotationValidation.cs
- SmtpNtlmAuthenticationModule.cs
- HttpWebResponse.cs
- CustomLineCap.cs
- DetailsViewCommandEventArgs.cs
- PeerTransportListenAddressValidatorAttribute.cs
- SafeLibraryHandle.cs
- DataPagerFieldCommandEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- MouseButtonEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- GifBitmapEncoder.cs
- ProcessProtocolHandler.cs
- KeyNotFoundException.cs
- AuditLog.cs
- HttpRequestCacheValidator.cs
- ItemContainerGenerator.cs
- FrameworkElementAutomationPeer.cs
- BrowserCapabilitiesFactoryBase.cs
- DataSetSchema.cs
- FloaterParagraph.cs
- ErrorProvider.cs
- UrlParameterWriter.cs
- AutomationAttributeInfo.cs
- Delegate.cs
- DbProviderSpecificTypePropertyAttribute.cs
- WriteableBitmap.cs
- BitmapEffectGeneralTransform.cs
- FaultContext.cs
- StopStoryboard.cs
- Line.cs
- PolyBezierSegment.cs
- ApplicationActivator.cs
- PolyQuadraticBezierSegment.cs
- ExpressionVisitor.cs
- FlowDocumentPageViewerAutomationPeer.cs
- XmlQueryStaticData.cs
- CodeGeneratorOptions.cs
- LifetimeMonitor.cs
- ConnectionsZoneAutoFormat.cs
- FixedSOMTable.cs
- MapPathBasedVirtualPathProvider.cs
- SamlAction.cs
- CfgSemanticTag.cs
- IInstanceContextProvider.cs
- DataContractSet.cs
- HtmlMeta.cs
- Aes.cs
- FormViewInsertEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- ExpressionBuilder.cs
- BinaryParser.cs
- Table.cs
- MultiSelector.cs
- WebBrowserUriTypeConverter.cs
- DataRow.cs
- DataGridViewComboBoxColumn.cs
- SetterBase.cs
- SqlConnectionFactory.cs
- RequestCachingSection.cs
- TextViewBase.cs
- ValueHandle.cs
- WindowsFormsSynchronizationContext.cs
- ViewStateException.cs
- FilterElement.cs
- TextStore.cs
- BoundColumn.cs
- PointCollectionValueSerializer.cs
- DelegatingHeader.cs
- TargetFrameworkUtil.cs
- AssemblyFilter.cs
- DesignerFrame.cs
- QuaternionRotation3D.cs
- PointAnimationUsingPath.cs
- XhtmlBasicLiteralTextAdapter.cs
- TriggerActionCollection.cs
- ExpandCollapsePattern.cs
- PasswordTextContainer.cs
- Fonts.cs
- PostBackTrigger.cs
- RoutedEventHandlerInfo.cs
- CreateUserWizardDesigner.cs
- FontStretch.cs
- ProxyManager.cs
- ObjectParameter.cs
- dataobject.cs
- DbCommandDefinition.cs
- FixedHyperLink.cs
- GrammarBuilderBase.cs
- ConfigPathUtility.cs
- PopupControlService.cs
- Hashtable.cs