Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- EpmContentSerializer.cs
- JsonEncodingStreamWrapper.cs
- GlobalEventManager.cs
- DataObjectSettingDataEventArgs.cs
- PageContentAsyncResult.cs
- SoapTypeAttribute.cs
- DoubleCollectionConverter.cs
- Native.cs
- IDReferencePropertyAttribute.cs
- SqlDeflator.cs
- DataGridRowDetailsEventArgs.cs
- StoreContentChangedEventArgs.cs
- ManifestResourceInfo.cs
- WriteableOnDemandStream.cs
- CodeArrayCreateExpression.cs
- AddressingVersion.cs
- ConfigXmlWhitespace.cs
- SessionStateContainer.cs
- XsdBuildProvider.cs
- ArgumentException.cs
- ToolboxBitmapAttribute.cs
- CustomCredentialPolicy.cs
- ZoneLinkButton.cs
- StatusBarPanel.cs
- SaveFileDialog.cs
- _NegoStream.cs
- EventDescriptor.cs
- FrameworkContentElementAutomationPeer.cs
- XpsSerializationManager.cs
- EntityDataSourceChangedEventArgs.cs
- AuthenticatedStream.cs
- QueryOutputWriter.cs
- EventRoute.cs
- ChangeBlockUndoRecord.cs
- RadioButton.cs
- UpDownEvent.cs
- MessageQueueConverter.cs
- PolicyImporterElement.cs
- HttpCapabilitiesEvaluator.cs
- HtmlTextArea.cs
- AffineTransform3D.cs
- TypeValidationEventArgs.cs
- UsernameTokenFactoryCredential.cs
- TypeElementCollection.cs
- RegularExpressionValidator.cs
- EntityViewGenerationAttribute.cs
- Vector3DAnimationUsingKeyFrames.cs
- ItemsControlAutomationPeer.cs
- MemoryResponseElement.cs
- Iis7Helper.cs
- SQLDecimal.cs
- PaperSource.cs
- TreeNode.cs
- XsltQilFactory.cs
- StdValidatorsAndConverters.cs
- DataGridCommandEventArgs.cs
- WinEventTracker.cs
- TextTreeInsertElementUndoUnit.cs
- AppDomain.cs
- BufferedGraphicsManager.cs
- VectorKeyFrameCollection.cs
- Console.cs
- BamlResourceDeserializer.cs
- DesignerForm.cs
- QueryOutputWriterV1.cs
- WebPartZoneCollection.cs
- BamlReader.cs
- PeerName.cs
- DbProviderConfigurationHandler.cs
- TypeInfo.cs
- WeakEventManager.cs
- UnmanagedMemoryAccessor.cs
- ContentAlignmentEditor.cs
- SqlUDTStorage.cs
- OverloadGroupAttribute.cs
- SizeValueSerializer.cs
- PeerApplication.cs
- DataGridTextBox.cs
- HtmlControl.cs
- CellNormalizer.cs
- ContactManager.cs
- ClientUtils.cs
- DispatcherTimer.cs
- FlowDocumentScrollViewer.cs
- RequestChannel.cs
- MappingItemCollection.cs
- TreeIterators.cs
- FloaterParaClient.cs
- ExecutionEngineException.cs
- Perspective.cs
- Rectangle.cs
- CollectionContainer.cs
- DataReceivedEventArgs.cs
- SecurityKeyIdentifier.cs
- ByteStreamMessageEncodingElement.cs
- TimeSpan.cs
- ImageButton.cs
- LogicalTreeHelper.cs
- XmlSchemaDatatype.cs
- SmiSettersStream.cs