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
- ImageSourceConverter.cs
- CheckableControlBaseAdapter.cs
- TraceSection.cs
- UiaCoreProviderApi.cs
- ValidationResult.cs
- _SingleItemRequestCache.cs
- XDeferredAxisSource.cs
- ByteAnimationBase.cs
- ContextMenuStrip.cs
- MeasureData.cs
- WebServiceErrorEvent.cs
- EncryptedKeyIdentifierClause.cs
- InfoCardRequestException.cs
- HtmlInputCheckBox.cs
- NamespaceExpr.cs
- FontStyleConverter.cs
- ShapeTypeface.cs
- ZipIOExtraField.cs
- XmlSchemaAttributeGroup.cs
- SafeFreeMibTable.cs
- GridViewEditEventArgs.cs
- ResourceReader.cs
- SiteMapNode.cs
- XmlEncodedRawTextWriter.cs
- ListSortDescriptionCollection.cs
- MessageFilter.cs
- DeclaredTypeElement.cs
- Authorization.cs
- WebBrowserSiteBase.cs
- DbCommandDefinition.cs
- Pkcs9Attribute.cs
- adornercollection.cs
- webclient.cs
- AnchoredBlock.cs
- XmlTextReaderImpl.cs
- ShowExpandedMultiValueConverter.cs
- Timer.cs
- CustomWebEventKey.cs
- CellNormalizer.cs
- SelectionBorderGlyph.cs
- EditorPart.cs
- PageSettings.cs
- FamilyTypeface.cs
- SafeEventHandle.cs
- VectorConverter.cs
- PointCollectionValueSerializer.cs
- TypeViewSchema.cs
- SystemDropShadowChrome.cs
- SpellerError.cs
- GlobalAllocSafeHandle.cs
- LocalClientSecuritySettingsElement.cs
- PriorityItem.cs
- RecognizeCompletedEventArgs.cs
- BrowserInteropHelper.cs
- AsyncDataRequest.cs
- SqlDataSourceConfigureSelectPanel.cs
- ThreadPool.cs
- SerialPinChanges.cs
- OneToOneMappingSerializer.cs
- Bezier.cs
- PartialToken.cs
- DesignerLoader.cs
- BamlMapTable.cs
- ControllableStoryboardAction.cs
- SQLByte.cs
- TypedTableBase.cs
- ConfigPathUtility.cs
- FastPropertyAccessor.cs
- StrongNamePublicKeyBlob.cs
- TimersDescriptionAttribute.cs
- OdbcFactory.cs
- ElementAction.cs
- AbstractDataSvcMapFileLoader.cs
- DesignTimeParseData.cs
- SessionParameter.cs
- Buffer.cs
- XmlIncludeAttribute.cs
- InvalidEnumArgumentException.cs
- StringUtil.cs
- ViewStateModeByIdAttribute.cs
- XmlQueryOutput.cs
- UDPClient.cs
- FrameworkElementAutomationPeer.cs
- ExecutionEngineException.cs
- DynamicPropertyReader.cs
- StickyNoteHelper.cs
- Point4D.cs
- MimePart.cs
- StructuralObject.cs
- StringFormat.cs
- CompositeFontParser.cs
- ProcessHostConfigUtils.cs
- ExpandCollapsePattern.cs
- AlgoModule.cs
- GeneralTransform3DGroup.cs
- TogglePattern.cs
- DescriptionCreator.cs
- Group.cs
- ProfilePropertySettings.cs
- SortFieldComparer.cs