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
- Int32CollectionConverter.cs
- SystemNetworkInterface.cs
- XPathSingletonIterator.cs
- UserNamePasswordClientCredential.cs
- HwndSource.cs
- ItemList.cs
- ListBoxDesigner.cs
- LayoutSettings.cs
- Query.cs
- KnowledgeBase.cs
- SHA384.cs
- WebPartDisplayModeCancelEventArgs.cs
- WindowsEditBox.cs
- RsaSecurityToken.cs
- MatcherBuilder.cs
- PrimitiveList.cs
- UserPreferenceChangedEventArgs.cs
- CapabilitiesState.cs
- RemoteDebugger.cs
- UrlRoutingHandler.cs
- printdlgexmarshaler.cs
- QilExpression.cs
- UnmanagedMemoryStreamWrapper.cs
- HwndHostAutomationPeer.cs
- SiteMapNodeCollection.cs
- IntSecurity.cs
- WebConfigurationHostFileChange.cs
- JournalEntryListConverter.cs
- MembershipUser.cs
- WeakReference.cs
- Themes.cs
- TextTreeTextNode.cs
- AttributeAction.cs
- Canvas.cs
- Rights.cs
- GeneratedView.cs
- DataGridViewBindingCompleteEventArgs.cs
- SafeNativeMethods.cs
- ErrorReporting.cs
- WebPartConnectionsCloseVerb.cs
- TreeNodeCollectionEditor.cs
- XmlCharType.cs
- OletxEnlistment.cs
- DashStyles.cs
- ApplicationHost.cs
- HtmlInputControl.cs
- VisualStyleInformation.cs
- CultureTableRecord.cs
- BulletDecorator.cs
- WebPartRestoreVerb.cs
- Splitter.cs
- BoundField.cs
- WebPartEditorApplyVerb.cs
- Attributes.cs
- WebControlAdapter.cs
- TableRow.cs
- OuterGlowBitmapEffect.cs
- DataView.cs
- WeakEventManager.cs
- UserNameSecurityToken.cs
- AmbientEnvironment.cs
- FileRecordSequenceCompletedAsyncResult.cs
- IgnoreFileBuildProvider.cs
- SpellerStatusTable.cs
- IgnoreSection.cs
- WebPartMinimizeVerb.cs
- DataGridViewRowPostPaintEventArgs.cs
- Executor.cs
- OrderedDictionary.cs
- XmlNodeChangedEventArgs.cs
- UnsafeNativeMethodsTablet.cs
- ReadOnlyHierarchicalDataSource.cs
- IgnoreFileBuildProvider.cs
- SystemNetworkInterface.cs
- BindingValueChangedEventArgs.cs
- DbConnectionPool.cs
- RoleManagerSection.cs
- CategoryAttribute.cs
- Viewport3DAutomationPeer.cs
- BaseDataListDesigner.cs
- DataGridTextBox.cs
- ControlPaint.cs
- ExpressionNode.cs
- Triangle.cs
- SamlSecurityTokenAuthenticator.cs
- ProgressBar.cs
- ColumnCollection.cs
- AbstractExpressions.cs
- PageAdapter.cs
- AlignmentYValidation.cs
- TopClause.cs
- MsmqBindingElementBase.cs
- ListContractAdapter.cs
- GeometryHitTestParameters.cs
- TraceListeners.cs
- TextTreeFixupNode.cs
- HttpProfileBase.cs
- SynchronizationContext.cs
- ForeignKeyConstraint.cs
- PolicyStatement.cs