Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ClientType.cs
- UnmanagedMemoryStreamWrapper.cs
- ImageFormatConverter.cs
- StorageModelBuildProvider.cs
- TextWriterEngine.cs
- Section.cs
- CodeSubDirectoriesCollection.cs
- ComponentChangedEvent.cs
- PrintPreviewDialog.cs
- ILGenerator.cs
- ServiceConfigurationTraceRecord.cs
- XmlSchemaProviderAttribute.cs
- StagingAreaInputItem.cs
- GuidConverter.cs
- NativeMethods.cs
- EntityCommand.cs
- MembershipValidatePasswordEventArgs.cs
- serverconfig.cs
- ForwardPositionQuery.cs
- BindingContext.cs
- TypeListConverter.cs
- Identity.cs
- ServiceBehaviorElementCollection.cs
- TdsParserStaticMethods.cs
- RectangleHotSpot.cs
- ListBoxItemAutomationPeer.cs
- DecimalKeyFrameCollection.cs
- TransactionsSectionGroup.cs
- RegexFCD.cs
- WorkflowCreationContext.cs
- InternalResources.cs
- IriParsingElement.cs
- RijndaelManagedTransform.cs
- WrapPanel.cs
- LocatorManager.cs
- NavigationWindow.cs
- TextBoxLine.cs
- Empty.cs
- _ServiceNameStore.cs
- SoapAttributeOverrides.cs
- TraceContext.cs
- NavigationCommands.cs
- MetadataUtil.cs
- ViewPort3D.cs
- ListControl.cs
- CatalogZone.cs
- PieceDirectory.cs
- GridView.cs
- FilterElement.cs
- versioninfo.cs
- DiscoveryClientReferences.cs
- ReplacementText.cs
- CommandSet.cs
- EntityTemplateFactory.cs
- SocketAddress.cs
- SystemIPAddressInformation.cs
- AutoFocusStyle.xaml.cs
- Int32Collection.cs
- SystemInfo.cs
- ReliableInputConnection.cs
- MessageVersion.cs
- RubberbandSelector.cs
- XhtmlBasicCommandAdapter.cs
- RemotingAttributes.cs
- Operator.cs
- PageSetupDialog.cs
- AssemblyHash.cs
- ExtendedPropertyCollection.cs
- PropertyKey.cs
- ConfigurationManagerInternal.cs
- MimeBasePart.cs
- UpdateTranslator.cs
- SoapFault.cs
- SevenBitStream.cs
- XLinq.cs
- WebBrowserBase.cs
- DateTimeOffset.cs
- BooleanKeyFrameCollection.cs
- RelOps.cs
- HttpRequest.cs
- X509Utils.cs
- InputLanguageEventArgs.cs
- SiteMapNode.cs
- ToolBar.cs
- Converter.cs
- NavigationFailedEventArgs.cs
- Matrix3D.cs
- StylusButton.cs
- PerfCounterSection.cs
- CorrelationManager.cs
- SimpleRecyclingCache.cs
- CommonXSendMessage.cs
- xmlsaver.cs
- DataSetUtil.cs
- PatternMatcher.cs
- InstalledVoice.cs
- OptimalBreakSession.cs
- Converter.cs
- DesignTableCollection.cs
- FolderBrowserDialog.cs