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
- AssemblyInfo.cs
- StorageScalarPropertyMapping.cs
- SmtpNegotiateAuthenticationModule.cs
- FilterableAttribute.cs
- UserPreferenceChangingEventArgs.cs
- SvcMapFileSerializer.cs
- RawMouseInputReport.cs
- SqlBulkCopyColumnMapping.cs
- QueryCreatedEventArgs.cs
- FileSystemInfo.cs
- PrintPreviewDialog.cs
- DSACryptoServiceProvider.cs
- DocumentViewerAutomationPeer.cs
- HttpFileCollectionBase.cs
- OrderByQueryOptionExpression.cs
- Subset.cs
- Error.cs
- ToolStripDesigner.cs
- XComponentModel.cs
- EntityDataSourceContainerNameItem.cs
- CancellationTokenSource.cs
- SecurityContextSecurityTokenAuthenticator.cs
- PointLight.cs
- DataSet.cs
- BlobPersonalizationState.cs
- XmlQualifiedNameTest.cs
- HtmlTernaryTree.cs
- LogExtent.cs
- BuildProviderCollection.cs
- CommentEmitter.cs
- PropertyInformation.cs
- CustomPopupPlacement.cs
- DataTableTypeConverter.cs
- ContextMenuStripActionList.cs
- SqlUdtInfo.cs
- VirtualizingStackPanel.cs
- DataGridCommandEventArgs.cs
- RouteParser.cs
- WizardPanel.cs
- MarkupObject.cs
- VirtualizedItemPattern.cs
- DynamicExpression.cs
- EventLogPermission.cs
- TextMetrics.cs
- DiffuseMaterial.cs
- Throw.cs
- GroupItem.cs
- WindowVisualStateTracker.cs
- DecoderFallback.cs
- listitem.cs
- DriveNotFoundException.cs
- DecoderFallbackWithFailureFlag.cs
- ConstructorArgumentAttribute.cs
- DownloadProgressEventArgs.cs
- TypeLibConverter.cs
- SharedPerformanceCounter.cs
- RoutingSection.cs
- Invariant.cs
- FixedSOMPageConstructor.cs
- SqlConnectionPoolProviderInfo.cs
- ConfigXmlSignificantWhitespace.cs
- StatusBarPanelClickEvent.cs
- SchemaImporterExtensionElementCollection.cs
- AnalyzedTree.cs
- BlurEffect.cs
- TextEncodedRawTextWriter.cs
- ProfilePropertySettings.cs
- IsolatedStorageException.cs
- ProtocolsConfiguration.cs
- DocumentOrderQuery.cs
- Vector3DCollection.cs
- UserInitiatedNavigationPermission.cs
- MemberProjectedSlot.cs
- MaskedTextBoxDesignerActionList.cs
- ColumnWidthChangedEvent.cs
- GlobalEventManager.cs
- CodeIdentifier.cs
- UnauthorizedAccessException.cs
- AspNetRouteServiceHttpHandler.cs
- BooleanConverter.cs
- SetterBaseCollection.cs
- SafeLocalAllocation.cs
- ScrollContentPresenter.cs
- TaskFileService.cs
- TimeSpanOrInfiniteConverter.cs
- SpoolingTask.cs
- ClientSponsor.cs
- _NtlmClient.cs
- ToolStripStatusLabel.cs
- OleStrCAMarshaler.cs
- PageParser.cs
- PersonalizationDictionary.cs
- FontEmbeddingManager.cs
- CancellationTokenSource.cs
- SafeHandles.cs
- SerializationStore.cs
- DataServiceRequest.cs
- ValidationEventArgs.cs
- ParagraphVisual.cs
- NonSerializedAttribute.cs