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
- ReadWriteObjectLock.cs
- CompressedStack.cs
- ReadOnlyDataSource.cs
- HtmlTable.cs
- SystemIPAddressInformation.cs
- OrderedDictionaryStateHelper.cs
- SessionEndingEventArgs.cs
- BinaryFormatterSinks.cs
- TextTreeDeleteContentUndoUnit.cs
- StateMachine.cs
- TextLineBreak.cs
- ObjectHandle.cs
- AnnotationService.cs
- HostedElements.cs
- WorkflowDataContext.cs
- OdbcStatementHandle.cs
- HttpWriter.cs
- TransformerInfoCollection.cs
- GridViewUpdateEventArgs.cs
- LightweightEntityWrapper.cs
- DesignerForm.cs
- TreeIterator.cs
- ChangeInterceptorAttribute.cs
- XmlObjectSerializerReadContextComplex.cs
- PropertyTab.cs
- ProcessModule.cs
- HttpWriter.cs
- DrawingBrush.cs
- OrderPreservingMergeHelper.cs
- FormsAuthenticationEventArgs.cs
- RichTextBoxConstants.cs
- WebCategoryAttribute.cs
- HttpProfileGroupBase.cs
- DataBindingCollection.cs
- ProfileModule.cs
- ObjectMemberMapping.cs
- SoapServerMessage.cs
- IQueryable.cs
- EditorAttribute.cs
- TreeIterator.cs
- BitmapEffectCollection.cs
- Sorting.cs
- IItemProperties.cs
- X509Certificate.cs
- Pkcs9Attribute.cs
- FormsAuthenticationUserCollection.cs
- storepermission.cs
- XPathBinder.cs
- ACE.cs
- StylusTip.cs
- SoapIncludeAttribute.cs
- VerificationAttribute.cs
- BuildTopDownAttribute.cs
- LoadItemsEventArgs.cs
- ObjectDataSourceView.cs
- UrlPath.cs
- NonBatchDirectoryCompiler.cs
- ProcessHostConfigUtils.cs
- CancelEventArgs.cs
- ISFClipboardData.cs
- RegexStringValidatorAttribute.cs
- FilteredXmlReader.cs
- CustomError.cs
- PageVisual.cs
- AsmxEndpointPickerExtension.cs
- TextTabProperties.cs
- NegationPusher.cs
- ArraySegment.cs
- oledbconnectionstring.cs
- DesignOnlyAttribute.cs
- _CommandStream.cs
- SkipStoryboardToFill.cs
- CompilerInfo.cs
- XmlUrlResolver.cs
- TableRowCollection.cs
- BamlLocalizer.cs
- IsolatedStoragePermission.cs
- Substitution.cs
- SerTrace.cs
- AutoGeneratedField.cs
- ZipIOExtraFieldPaddingElement.cs
- RowUpdatingEventArgs.cs
- FormatterServicesNoSerializableCheck.cs
- LostFocusEventManager.cs
- ExecutionContext.cs
- Event.cs
- SqlColumnizer.cs
- SmiContext.cs
- DetailsViewModeEventArgs.cs
- Win32PrintDialog.cs
- AnnotationMap.cs
- HttpWebRequestElement.cs
- IgnoreFileBuildProvider.cs
- AnnotationElement.cs
- ChannelBuilder.cs
- DialogResultConverter.cs
- EdmFunctionAttribute.cs
- EntityDataSourceStatementEditorForm.cs
- ExecutionContext.cs
- sortedlist.cs