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
- KeyMatchBuilder.cs
- DeviceContexts.cs
- RowCache.cs
- DnsPermission.cs
- DrawingBrush.cs
- BindUriHelper.cs
- OracleMonthSpan.cs
- PermissionSetEnumerator.cs
- EndpointNotFoundException.cs
- Environment.cs
- Geometry.cs
- _Semaphore.cs
- Transform.cs
- peersecurityelement.cs
- ConfigXmlCDataSection.cs
- SnapshotChangeTrackingStrategy.cs
- PageParser.cs
- DbProviderFactory.cs
- HtmlTitle.cs
- PropertyStore.cs
- WindowsTokenRoleProvider.cs
- PropertyTabChangedEvent.cs
- shaper.cs
- ComponentCollection.cs
- CollectionViewGroup.cs
- DataGridColumnCollection.cs
- QilPatternFactory.cs
- BitmapCacheBrush.cs
- EngineSite.cs
- HashMembershipCondition.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlReflectionImporter.cs
- XmlSchemaException.cs
- TcpActivation.cs
- BamlRecordHelper.cs
- ConfigurationHandlersInstallComponent.cs
- XmlChildEnumerator.cs
- XmlRawWriterWrapper.cs
- Margins.cs
- SubclassTypeValidator.cs
- RelatedEnd.cs
- EntityCommand.cs
- ScriptResourceAttribute.cs
- MenuItem.cs
- CancellationToken.cs
- TraceHandlerErrorFormatter.cs
- SortedDictionary.cs
- HierarchicalDataSourceControl.cs
- RadioButtonPopupAdapter.cs
- __Filters.cs
- FontCacheUtil.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ImageSource.cs
- ObjectDataSource.cs
- SessionChannels.cs
- WhitespaceRule.cs
- MasterPageParser.cs
- SqlXmlStorage.cs
- UInt64.cs
- FieldToken.cs
- SymmetricAlgorithm.cs
- TypeBrowserDialog.cs
- UnsafeNativeMethods.cs
- CommandExpr.cs
- StateMachineExecutionState.cs
- FormViewUpdatedEventArgs.cs
- MobileListItem.cs
- MailWebEventProvider.cs
- ParserStreamGeometryContext.cs
- RangeBase.cs
- ExpanderAutomationPeer.cs
- BufferBuilder.cs
- HandlerWithFactory.cs
- BindingCollection.cs
- StickyNote.cs
- Gdiplus.cs
- EventProviderBase.cs
- ButtonBase.cs
- PagerSettings.cs
- BamlBinaryReader.cs
- RIPEMD160Managed.cs
- _Rfc2616CacheValidators.cs
- ResourceReferenceExpressionConverter.cs
- TablePattern.cs
- TraceContextRecord.cs
- ScaleTransform.cs
- HtmlEncodedRawTextWriter.cs
- AuthorizationRule.cs
- ApplicationFileParser.cs
- EntityClassGenerator.cs
- AppDomainShutdownMonitor.cs
- KeyConverter.cs
- ObjectDataSourceFilteringEventArgs.cs
- SafeCryptContextHandle.cs
- RequestChannel.cs
- RefreshEventArgs.cs
- PackWebResponse.cs
- IntMinMaxAggregationOperator.cs
- SpellerError.cs
- BamlCollectionHolder.cs