Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
//
// 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
- ResumeStoryboard.cs
- Rect3D.cs
- WizardPanel.cs
- ActivityContext.cs
- ExpressionBuilder.cs
- DataGridrowEditEndingEventArgs.cs
- UriTemplateQueryValue.cs
- JapaneseLunisolarCalendar.cs
- ProfileEventArgs.cs
- ActivityExecutor.cs
- HtmlImage.cs
- HttpFileCollection.cs
- ParserContext.cs
- WorkflowQueueInfo.cs
- PathSegmentCollection.cs
- HyperlinkAutomationPeer.cs
- SchemaTypeEmitter.cs
- DefaultAuthorizationContext.cs
- CriticalHandle.cs
- AdobeCFFWrapper.cs
- WindowVisualStateTracker.cs
- SmiMetaDataProperty.cs
- ProfileManager.cs
- PerfService.cs
- RelatedPropertyManager.cs
- SelectionWordBreaker.cs
- SqlConnectionManager.cs
- CachedFontFamily.cs
- TimerExtension.cs
- RowToParametersTransformer.cs
- SourceExpressionException.cs
- ParserHooks.cs
- QuaternionConverter.cs
- PageThemeBuildProvider.cs
- RubberbandSelector.cs
- SynchronizedDispatch.cs
- ControlIdConverter.cs
- XmlNamespaceMapping.cs
- ColorConvertedBitmap.cs
- BamlBinaryReader.cs
- QueryConverter.cs
- Menu.cs
- ClientRequest.cs
- MediaSystem.cs
- ClientProxyGenerator.cs
- TimeSpanStorage.cs
- SortedList.cs
- ProxyFragment.cs
- RegexCharClass.cs
- CheckBoxFlatAdapter.cs
- MessageSecurityVersionConverter.cs
- MessageQueueAccessControlEntry.cs
- XmlReader.cs
- HostedTransportConfigurationBase.cs
- TimeSpan.cs
- ObjectListGeneralPage.cs
- MarkupObject.cs
- XmlTextReader.cs
- _Events.cs
- RadioButtonRenderer.cs
- DataAdapter.cs
- TextServicesContext.cs
- QuaternionRotation3D.cs
- TextEditorThreadLocalStore.cs
- Rss20ItemFormatter.cs
- CollectionViewGroup.cs
- ListItemParagraph.cs
- KeyedHashAlgorithm.cs
- AnonymousIdentificationSection.cs
- MulticastOption.cs
- TextDecorationUnitValidation.cs
- PolyBezierSegment.cs
- DocumentXmlWriter.cs
- XmlNamespaceDeclarationsAttribute.cs
- EditorZoneBase.cs
- Sql8ConformanceChecker.cs
- GotoExpression.cs
- QuadraticEase.cs
- CommonDialog.cs
- Dynamic.cs
- XmlSerializationWriter.cs
- TemplateNodeContextMenu.cs
- JpegBitmapEncoder.cs
- EmbossBitmapEffect.cs
- SelectingProviderEventArgs.cs
- RotateTransform.cs
- PrintEvent.cs
- ComponentCommands.cs
- Mapping.cs
- Point3DKeyFrameCollection.cs
- AnnotationHelper.cs
- SqlCaseSimplifier.cs
- XmlSerializerNamespaces.cs
- RichTextBox.cs
- TileBrush.cs
- MobileUITypeEditor.cs
- MyContact.cs
- Utils.cs
- GeometryHitTestResult.cs
- EmptyStringExpandableObjectConverter.cs