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
- OdbcConnectionHandle.cs
- XmlAttribute.cs
- UInt64Storage.cs
- HMACRIPEMD160.cs
- ListManagerBindingsCollection.cs
- RegularExpressionValidator.cs
- StringComparer.cs
- MethodBuilder.cs
- Double.cs
- GradientBrush.cs
- DependencyPropertyAttribute.cs
- ValueTable.cs
- AudioDeviceOut.cs
- WorkflowDispatchContext.cs
- AmbientLight.cs
- CompilerInfo.cs
- ValidatorCompatibilityHelper.cs
- odbcmetadatafactory.cs
- DecoderFallbackWithFailureFlag.cs
- IpcChannelHelper.cs
- IPGlobalProperties.cs
- StylusShape.cs
- TimeZoneInfo.cs
- ImageMetadata.cs
- DesignerPerfEventProvider.cs
- VisualTarget.cs
- LabelAutomationPeer.cs
- COM2AboutBoxPropertyDescriptor.cs
- WebPartManager.cs
- SchemaAttDef.cs
- Hex.cs
- BinaryObjectReader.cs
- ImageMap.cs
- ContextProperty.cs
- PagedDataSource.cs
- Win32KeyboardDevice.cs
- CodeTypeParameterCollection.cs
- PreservationFileReader.cs
- StickyNoteContentControl.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- DocumentViewerBase.cs
- PropertyConverter.cs
- RuleSettings.cs
- TextParagraphProperties.cs
- XmlDataDocument.cs
- XmlAttributes.cs
- Latin1Encoding.cs
- AudioFileOut.cs
- ResourceDefaultValueAttribute.cs
- DataGridDetailsPresenter.cs
- QueryCacheKey.cs
- UnmanagedMarshal.cs
- EventMappingSettings.cs
- TypographyProperties.cs
- DbProviderConfigurationHandler.cs
- GridViewHeaderRowPresenter.cs
- infer.cs
- FieldInfo.cs
- MarshalByRefObject.cs
- RoutedEventConverter.cs
- IndependentAnimationStorage.cs
- FastEncoder.cs
- ModelChangedEventArgsImpl.cs
- FilterElement.cs
- MailAddressParser.cs
- PaperSize.cs
- MaterialGroup.cs
- IDReferencePropertyAttribute.cs
- RowVisual.cs
- SafeHandles.cs
- ThumbAutomationPeer.cs
- ChannelParameterCollection.cs
- TreeBuilderBamlTranslator.cs
- BamlTreeMap.cs
- Trace.cs
- DataGridViewTopRowAccessibleObject.cs
- CustomErrorsSectionWrapper.cs
- ImageMapEventArgs.cs
- ListViewPagedDataSource.cs
- TableParagraph.cs
- CroppedBitmap.cs
- TextControl.cs
- TemplatePagerField.cs
- MultiByteCodec.cs
- FileRecordSequenceHelper.cs
- DragDeltaEventArgs.cs
- OutputCacheModule.cs
- TypeFieldSchema.cs
- AxisAngleRotation3D.cs
- TableCellAutomationPeer.cs
- RectAnimation.cs
- AncestorChangedEventArgs.cs
- QilReplaceVisitor.cs
- ListViewGroupCollectionEditor.cs
- ElapsedEventArgs.cs
- DispatchChannelSink.cs
- CompilerWrapper.cs
- PromptBuilder.cs
- DataGridViewCellConverter.cs
- ContentValidator.cs