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
- TripleDES.cs
- InstanceOwner.cs
- TextOutput.cs
- ToolStripButton.cs
- Profiler.cs
- ObjectPropertyMapping.cs
- MembershipValidatePasswordEventArgs.cs
- ParseHttpDate.cs
- ResXResourceReader.cs
- SecurityKeyIdentifierClause.cs
- HtmlInputText.cs
- LogicalExpr.cs
- LocalizeDesigner.cs
- HttpHandler.cs
- EntityReference.cs
- FixedSOMTextRun.cs
- LineInfo.cs
- HyperLinkField.cs
- XPathPatternParser.cs
- TrackingConditionCollection.cs
- MarshalByRefObject.cs
- DocumentSchemaValidator.cs
- FontUnit.cs
- TextElementEnumerator.cs
- CommandHelpers.cs
- XmlDictionaryReaderQuotas.cs
- UncommonField.cs
- EntityTypeEmitter.cs
- SQLBinaryStorage.cs
- DeviceSpecificDesigner.cs
- Padding.cs
- XmlQueryContext.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- EntitySetBaseCollection.cs
- DataTable.cs
- XmlSchemaFacet.cs
- WorkItem.cs
- BitmapData.cs
- EUCJPEncoding.cs
- SpellerHighlightLayer.cs
- RootBuilder.cs
- TextEditorCharacters.cs
- CalendarDataBindingHandler.cs
- LOSFormatter.cs
- File.cs
- CacheMode.cs
- CachedResourceDictionaryExtension.cs
- HttpPostedFileBase.cs
- InputBinding.cs
- Empty.cs
- Pair.cs
- GregorianCalendarHelper.cs
- Int32Converter.cs
- TextFormatter.cs
- FileNotFoundException.cs
- WebBrowserUriTypeConverter.cs
- AttributeEmitter.cs
- ExpressionBuilder.cs
- CalendarButtonAutomationPeer.cs
- VirtualPathData.cs
- DropShadowEffect.cs
- AlternateViewCollection.cs
- AsyncDataRequest.cs
- SelectorAutomationPeer.cs
- BooleanFunctions.cs
- XPathDescendantIterator.cs
- TemplateModeChangedEventArgs.cs
- BuilderPropertyEntry.cs
- DbLambda.cs
- BaseValidatorDesigner.cs
- FileSecurity.cs
- SqlDataSourceParameterParser.cs
- PointCollection.cs
- IgnoreFlushAndCloseStream.cs
- BaseDataListComponentEditor.cs
- HostedHttpContext.cs
- QueryProcessor.cs
- BaseTreeIterator.cs
- ClientEventManager.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- ToolStripSeparator.cs
- MimeTypeMapper.cs
- CellQuery.cs
- GcHandle.cs
- OneOf.cs
- CodeSnippetStatement.cs
- HotCommands.cs
- XmlFormatExtensionAttribute.cs
- ColorConverter.cs
- LinqDataSourceUpdateEventArgs.cs
- TextRange.cs
- COM2ColorConverter.cs
- CustomAttribute.cs
- ImageListImage.cs
- SimpleFieldTemplateFactory.cs
- entitydatasourceentitysetnameconverter.cs
- FullTextLine.cs
- ImageField.cs
- BufferedConnection.cs
- SQLInt16Storage.cs