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
- ToolStripSettings.cs
- QueryPageSettingsEventArgs.cs
- safesecurityhelperavalon.cs
- SmiSettersStream.cs
- ClassHandlersStore.cs
- FormViewInsertedEventArgs.cs
- MULTI_QI.cs
- WebPartManagerInternals.cs
- ZipFileInfo.cs
- BuildProvider.cs
- EmptyArray.cs
- SchemaImporterExtension.cs
- HttpDebugHandler.cs
- PersonalizationProvider.cs
- AccessDataSourceView.cs
- PermissionListSet.cs
- BamlMapTable.cs
- StreamGeometryContext.cs
- OneOfConst.cs
- FilterEventArgs.cs
- HitTestFilterBehavior.cs
- EmptyCollection.cs
- Transactions.cs
- Grammar.cs
- SrgsGrammar.cs
- DataMemberConverter.cs
- TracedNativeMethods.cs
- BitmapEffectDrawingContextState.cs
- DataServiceSaveChangesEventArgs.cs
- UiaCoreApi.cs
- CompilationPass2TaskInternal.cs
- SortedList.cs
- FixedTextView.cs
- PagesChangedEventArgs.cs
- Baml2006SchemaContext.cs
- OverflowException.cs
- XmlSchemaNotation.cs
- StackOverflowException.cs
- HtmlInputControl.cs
- XmlAnyElementAttribute.cs
- IImplicitResourceProvider.cs
- ExpressionPrefixAttribute.cs
- ActiveXSite.cs
- XmlEntity.cs
- FormViewPageEventArgs.cs
- CircleHotSpot.cs
- BitHelper.cs
- SystemBrushes.cs
- ImageAutomationPeer.cs
- PropertyItem.cs
- StorageModelBuildProvider.cs
- TextTreeTextBlock.cs
- SqlWebEventProvider.cs
- ArcSegment.cs
- MsmqActivation.cs
- NetworkInformationException.cs
- CallbackHandler.cs
- TagNameToTypeMapper.cs
- ObjectStorage.cs
- MulticastNotSupportedException.cs
- MergeFailedEvent.cs
- WebHttpSecurityElement.cs
- KeyEventArgs.cs
- ExtendedPropertiesHandler.cs
- XhtmlBasicCommandAdapter.cs
- DataGridViewLinkColumn.cs
- SymDocumentType.cs
- TemplateBindingExtension.cs
- login.cs
- OutputCacheProfile.cs
- UnsafeNativeMethods.cs
- ContextBase.cs
- ProfileBuildProvider.cs
- CodeArrayCreateExpression.cs
- StreamInfo.cs
- ValueConversionAttribute.cs
- TextEffect.cs
- BaseInfoTable.cs
- DeclarativeCatalogPartDesigner.cs
- MimeTypeMapper.cs
- ModelTypeConverter.cs
- LongTypeConverter.cs
- ProcessHostFactoryHelper.cs
- EndpointDiscoveryElement.cs
- QuotedStringWriteStateInfo.cs
- MediaContext.cs
- TaskExceptionHolder.cs
- Baml2006ReaderSettings.cs
- ProfileParameter.cs
- TypedDataSourceCodeGenerator.cs
- XpsPartBase.cs
- PermissionSetEnumerator.cs
- BindingWorker.cs
- returneventsaver.cs
- CodeTypeDelegate.cs
- OleDbReferenceCollection.cs
- SqlNodeAnnotations.cs
- MemberDescriptor.cs
- CreateWorkflowOwnerCommand.cs
- Pts.cs