Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....]: 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIElementHelper.cs
- GradientStop.cs
- ScrollItemPattern.cs
- TraceListeners.cs
- QilIterator.cs
- FillErrorEventArgs.cs
- Style.cs
- XmlDataDocument.cs
- HandlerFactoryWrapper.cs
- DesignerWebPartChrome.cs
- ScrollViewerAutomationPeer.cs
- CorrelationManager.cs
- TypeElement.cs
- PersonalizationDictionary.cs
- XNameTypeConverter.cs
- BooleanSwitch.cs
- BCryptSafeHandles.cs
- WindowVisualStateTracker.cs
- SettingsPropertyValue.cs
- TransformGroup.cs
- RuleEngine.cs
- StubHelpers.cs
- OpCellTreeNode.cs
- CommonProperties.cs
- StreamWriter.cs
- SelectionListDesigner.cs
- DataControlHelper.cs
- Registry.cs
- ComplexPropertyEntry.cs
- DbDataAdapter.cs
- ThreadAttributes.cs
- WaitForChangedResult.cs
- DocumentViewer.cs
- EventSetter.cs
- FragmentNavigationEventArgs.cs
- XDRSchema.cs
- SemanticValue.cs
- ValidationResult.cs
- PartialToken.cs
- EnumerableRowCollectionExtensions.cs
- DataGridViewHitTestInfo.cs
- LocatorPart.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BindingExpressionBase.cs
- CodeTypeParameterCollection.cs
- GiveFeedbackEvent.cs
- Options.cs
- GenericParameterDataContract.cs
- CleanUpVirtualizedItemEventArgs.cs
- ListenerElementsCollection.cs
- DragStartedEventArgs.cs
- PageFunction.cs
- ToolStripSplitStackLayout.cs
- CultureTable.cs
- hebrewshape.cs
- DynamicDocumentPaginator.cs
- SpnegoTokenProvider.cs
- TimeIntervalCollection.cs
- HyperLinkStyle.cs
- CancelRequestedRecord.cs
- InProcStateClientManager.cs
- ToolStripSeparator.cs
- PackWebRequest.cs
- LocatorGroup.cs
- Int32Animation.cs
- HandleRef.cs
- DictionaryContent.cs
- IgnoreSection.cs
- SizeConverter.cs
- CheckPair.cs
- RecognizedWordUnit.cs
- PersonalizationState.cs
- ProfileEventArgs.cs
- ProxySimple.cs
- ImagingCache.cs
- HtmlEncodedRawTextWriter.cs
- GridEntryCollection.cs
- BoolLiteral.cs
- Int64Storage.cs
- DataQuery.cs
- ProtectedProviderSettings.cs
- XPathDocumentBuilder.cs
- Base64Encoding.cs
- ISFClipboardData.cs
- AssociationTypeEmitter.cs
- AutoGeneratedField.cs
- ControlBuilder.cs
- AutomationPropertyInfo.cs
- VirtualPathUtility.cs
- WebSysDescriptionAttribute.cs
- ProxyHwnd.cs
- DataGridViewRowConverter.cs
- FieldNameLookup.cs
- StringFunctions.cs
- EpmHelper.cs
- SeverityFilter.cs
- AQNBuilder.cs
- StsCommunicationException.cs
- SecureConversationServiceElement.cs
- TypeContext.cs