Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1305600 / 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
- TransformDescriptor.cs
- HotSpot.cs
- CharacterBuffer.cs
- UpdateException.cs
- Array.cs
- Drawing.cs
- CommandSet.cs
- PropertyEmitter.cs
- SmiConnection.cs
- CodeAssignStatement.cs
- PageCodeDomTreeGenerator.cs
- Application.cs
- DataGridViewRowsRemovedEventArgs.cs
- ContextStack.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlWriter.cs
- NoneExcludedImageIndexConverter.cs
- SystemUnicastIPAddressInformation.cs
- XmlQueryCardinality.cs
- StylusCaptureWithinProperty.cs
- XmlSchemaSimpleContent.cs
- NodeLabelEditEvent.cs
- MemberDescriptor.cs
- GradientStopCollection.cs
- X509RawDataKeyIdentifierClause.cs
- SpellerInterop.cs
- counter.cs
- SharedPerformanceCounter.cs
- PriorityQueue.cs
- CriticalHandle.cs
- FontWeight.cs
- ToolboxBitmapAttribute.cs
- Message.cs
- httpserverutility.cs
- XmlnsCache.cs
- DesignerContextDescriptor.cs
- AsyncOperation.cs
- TextEditorSelection.cs
- Color.cs
- SimpleRecyclingCache.cs
- InstanceDescriptor.cs
- CodeThrowExceptionStatement.cs
- DataColumnCollection.cs
- HTMLTextWriter.cs
- AttributeQuery.cs
- DynamicActivityXamlReader.cs
- MessageHeader.cs
- StaticSiteMapProvider.cs
- DataGridViewRowStateChangedEventArgs.cs
- LongValidatorAttribute.cs
- AssertFilter.cs
- CompModSwitches.cs
- PanelContainerDesigner.cs
- DiscreteKeyFrames.cs
- SqlInternalConnectionTds.cs
- IconConverter.cs
- EntityDataSourceWrapperCollection.cs
- ProxyElement.cs
- MappingItemCollection.cs
- TextElementEnumerator.cs
- HtmlInputControl.cs
- HtmlEmptyTagControlBuilder.cs
- ObjectViewEntityCollectionData.cs
- SpoolingTask.cs
- SoapRpcServiceAttribute.cs
- TextAnchor.cs
- CacheVirtualItemsEvent.cs
- XXXInfos.cs
- ExceptionHandler.cs
- OleDbConnection.cs
- BamlCollectionHolder.cs
- ActivityStatusChangeEventArgs.cs
- EncoderParameters.cs
- ConfigurationSettings.cs
- MenuItemBinding.cs
- UserMapPath.cs
- XmlLanguageConverter.cs
- SQLBinaryStorage.cs
- ReadOnlyAttribute.cs
- _PooledStream.cs
- Vector3DConverter.cs
- ModuleElement.cs
- RoleGroup.cs
- UmAlQuraCalendar.cs
- RulePatternOps.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ProgressiveCrcCalculatingStream.cs
- MyContact.cs
- SynchronizedCollection.cs
- DetailsViewPagerRow.cs
- BitmapEffectGeneralTransform.cs
- DNS.cs
- XsdDataContractExporter.cs
- entityreference_tresulttype.cs
- OrderedDictionary.cs
- SqlBulkCopyColumnMapping.cs
- Overlapped.cs
- DirectoryObjectSecurity.cs
- FormatterServices.cs
- LocalIdKeyIdentifierClause.cs