Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InkCanvasSelection.cs
- TypeUtil.cs
- StyleBamlTreeBuilder.cs
- Buffer.cs
- InkCanvasSelection.cs
- WaitHandleCannotBeOpenedException.cs
- PropertyDescriptorGridEntry.cs
- DataGridViewMethods.cs
- TextEditorTables.cs
- FontUnit.cs
- SignatureHelper.cs
- SqlTransaction.cs
- ColorConvertedBitmap.cs
- QualificationDataItem.cs
- PositiveTimeSpanValidator.cs
- Control.cs
- Queue.cs
- WorkflowMarkupSerializer.cs
- BindStream.cs
- WsrmFault.cs
- CompiledXpathExpr.cs
- HttpListenerRequest.cs
- TableRowGroupCollection.cs
- AuditLogLocation.cs
- EntityParameterCollection.cs
- XmlDocumentSerializer.cs
- Win32MouseDevice.cs
- HttpContextBase.cs
- PreApplicationStartMethodAttribute.cs
- DescendantQuery.cs
- ScaleTransform3D.cs
- InputGestureCollection.cs
- DebugView.cs
- CompilerTypeWithParams.cs
- StyleXamlTreeBuilder.cs
- DateTimeSerializationSection.cs
- WebPartEditVerb.cs
- ReflectTypeDescriptionProvider.cs
- GeneralTransformCollection.cs
- Base64Encoding.cs
- ValidationErrorEventArgs.cs
- BinaryFormatterSinks.cs
- serverconfig.cs
- CodeNamespace.cs
- CompositeActivityTypeDescriptor.cs
- BinHexDecoder.cs
- InstanceDataCollection.cs
- SqlUnionizer.cs
- UIElementParaClient.cs
- CheckPair.cs
- PlatformNotSupportedException.cs
- PopupControlService.cs
- Cursor.cs
- MsmqDiagnostics.cs
- FrameworkTemplate.cs
- DesignerTransaction.cs
- XmlDocumentType.cs
- ViewManager.cs
- Win32Native.cs
- AsyncResult.cs
- OrCondition.cs
- ObjectListShowCommandsEventArgs.cs
- ClientType.cs
- UserControl.cs
- SoapCodeExporter.cs
- SqlUserDefinedTypeAttribute.cs
- RepeatBehavior.cs
- CompositeFontInfo.cs
- UTF8Encoding.cs
- SamlNameIdentifierClaimResource.cs
- VirtualizingStackPanel.cs
- Processor.cs
- ModifiableIteratorCollection.cs
- RuntimeHelpers.cs
- DataFormats.cs
- Stylesheet.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ContextMenuStrip.cs
- CollectionEditor.cs
- ViewPort3D.cs
- MaskInputRejectedEventArgs.cs
- DataColumn.cs
- PropertyStore.cs
- VisualTarget.cs
- ConnectionPool.cs
- ExpressionBinding.cs
- activationcontext.cs
- SecurityKeyIdentifierClause.cs
- DecoderReplacementFallback.cs
- NetworkStream.cs
- ToolStripContainer.cs
- TrackingQuery.cs
- TypedTableHandler.cs
- NavigatorInput.cs
- CurrentTimeZone.cs
- DecoderFallbackWithFailureFlag.cs
- PerformanceCounterLib.cs
- CommandBindingCollection.cs
- SchemaLookupTable.cs
- TextBox.cs