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
- PenThreadWorker.cs
- WebPartRestoreVerb.cs
- PtsCache.cs
- AuthenticationManager.cs
- Itemizer.cs
- FusionWrap.cs
- XmlEntityReference.cs
- Axis.cs
- ButtonChrome.cs
- StackOverflowException.cs
- StrongNameUtility.cs
- TransformerInfoCollection.cs
- ExportFileRequest.cs
- WhiteSpaceTrimStringConverter.cs
- BindableTemplateBuilder.cs
- PassportIdentity.cs
- FillErrorEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- OleDbConnection.cs
- GroupBoxAutomationPeer.cs
- AtomServiceDocumentSerializer.cs
- InfoCardMasterKey.cs
- DecoderBestFitFallback.cs
- DataPagerFieldItem.cs
- ReadingWritingEntityEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- ListDictionary.cs
- VectorConverter.cs
- SocketInformation.cs
- Attributes.cs
- PreservationFileWriter.cs
- TemplateBuilder.cs
- BitHelper.cs
- HttpErrorTraceRecord.cs
- Column.cs
- SourceFilter.cs
- ValueTable.cs
- TreeViewAutomationPeer.cs
- VectorKeyFrameCollection.cs
- TrackBarDesigner.cs
- OdbcHandle.cs
- FocusChangedEventArgs.cs
- AsyncOperationManager.cs
- TypeBrowserDialog.cs
- XmlSchemaElement.cs
- QueueProcessor.cs
- MsmqIntegrationInputChannel.cs
- AsymmetricSignatureFormatter.cs
- ReadOnlyPermissionSet.cs
- SoapConverter.cs
- WaitHandleCannotBeOpenedException.cs
- AppSettingsExpressionBuilder.cs
- TcpChannelHelper.cs
- RoutingUtilities.cs
- _NetworkingPerfCounters.cs
- DateTimeConverter2.cs
- SmtpFailedRecipientsException.cs
- DataGridViewRow.cs
- TextPattern.cs
- messageonlyhwndwrapper.cs
- PlatformCulture.cs
- SimpleTableProvider.cs
- ScriptResourceAttribute.cs
- ColorAnimation.cs
- _UncName.cs
- CfgRule.cs
- PtsPage.cs
- BeginEvent.cs
- PassportAuthenticationEventArgs.cs
- NgenServicingAttributes.cs
- RoleService.cs
- Separator.cs
- CssClassPropertyAttribute.cs
- typedescriptorpermission.cs
- XMLSchema.cs
- AdapterDictionary.cs
- DataGridViewCellStateChangedEventArgs.cs
- unitconverter.cs
- SimpleNameService.cs
- FunctionNode.cs
- FontCollection.cs
- InternalConfigEventArgs.cs
- ActivityBuilderHelper.cs
- InternalRelationshipCollection.cs
- TypedTableHandler.cs
- MemberMaps.cs
- C14NUtil.cs
- NamedPipeAppDomainProtocolHandler.cs
- ToolStripControlHost.cs
- CodePrimitiveExpression.cs
- FlowDocumentPaginator.cs
- CreateUserWizardStep.cs
- SimpleExpression.cs
- MarginCollapsingState.cs
- WeakEventManager.cs
- RecordsAffectedEventArgs.cs
- OrderByQueryOptionExpression.cs
- ContentOperations.cs
- SoapEnvelopeProcessingElement.cs
- dtdvalidator.cs