Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- JoinElimination.cs
- Visitors.cs
- BaseResourcesBuildProvider.cs
- ArgumentNullException.cs
- DispatcherSynchronizationContext.cs
- DecimalFormatter.cs
- SymDocumentType.cs
- TypeDependencyAttribute.cs
- SecurityDescriptor.cs
- Preprocessor.cs
- DiscoveryVersionConverter.cs
- NameObjectCollectionBase.cs
- Imaging.cs
- EntityCollection.cs
- SqlDataReader.cs
- Grant.cs
- DriveInfo.cs
- StateMachineSubscription.cs
- CodeVariableReferenceExpression.cs
- MetaTableHelper.cs
- StylusPlugInCollection.cs
- CheckBox.cs
- GroupItemAutomationPeer.cs
- UserControlCodeDomTreeGenerator.cs
- RouteTable.cs
- SchemaTableColumn.cs
- ImmComposition.cs
- FixedHighlight.cs
- TextSelectionHighlightLayer.cs
- StyleBamlTreeBuilder.cs
- TokenBasedSet.cs
- GroupAggregateExpr.cs
- ConnectionInterfaceCollection.cs
- ImageCreator.cs
- AnnotationComponentManager.cs
- HtmlInputReset.cs
- SizeKeyFrameCollection.cs
- TdsEnums.cs
- WindowsSecurityTokenAuthenticator.cs
- PriorityChain.cs
- FixedPageAutomationPeer.cs
- ModelPerspective.cs
- DefaultProxySection.cs
- HwndStylusInputProvider.cs
- DesignTimeData.cs
- SqlReferenceCollection.cs
- XmlSchemaImporter.cs
- GCHandleCookieTable.cs
- RemoveStoryboard.cs
- UInt64Storage.cs
- Empty.cs
- EventMappingSettingsCollection.cs
- SevenBitStream.cs
- HuffModule.cs
- UnauthorizedWebPart.cs
- ApplicationSecurityInfo.cs
- ExtendedProtectionPolicy.cs
- ConditionBrowserDialog.cs
- ConditionBrowserDialog.cs
- ParallelEnumerableWrapper.cs
- InheritanceContextHelper.cs
- Quad.cs
- MsmqTransportBindingElement.cs
- TextServicesCompartmentEventSink.cs
- OLEDB_Enum.cs
- ZoneMembershipCondition.cs
- SwitchAttribute.cs
- Popup.cs
- Calendar.cs
- StylusCaptureWithinProperty.cs
- Serializer.cs
- TransactionManager.cs
- DragCompletedEventArgs.cs
- SoapEnumAttribute.cs
- MouseGesture.cs
- TextServicesManager.cs
- WindowsServiceCredential.cs
- StreamSecurityUpgradeInitiatorBase.cs
- ThreadAbortException.cs
- RIPEMD160.cs
- HwndSourceKeyboardInputSite.cs
- TextBoxRenderer.cs
- ILGenerator.cs
- COM2IPerPropertyBrowsingHandler.cs
- FixedSOMGroup.cs
- SerializationObjectManager.cs
- DocComment.cs
- PointAnimationUsingPath.cs
- AssertFilter.cs
- ContainerSelectorGlyph.cs
- OperationContextScope.cs
- DirtyTextRange.cs
- AnimatedTypeHelpers.cs
- TreeIterator.cs
- RemotingSurrogateSelector.cs
- SwitchElementsCollection.cs
- TagNameToTypeMapper.cs
- DetailsView.cs
- TypeExtension.cs
- SizeAnimationClockResource.cs