Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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: 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
- CustomErrorsSection.cs
- StatusBarAutomationPeer.cs
- IdleTimeoutMonitor.cs
- NamedObjectList.cs
- XpsDigitalSignature.cs
- NonBatchDirectoryCompiler.cs
- StandardBindingElement.cs
- ParameterCollectionEditor.cs
- ParenExpr.cs
- OptimizedTemplateContentHelper.cs
- _NTAuthentication.cs
- SudsWriter.cs
- Instrumentation.cs
- SoapCodeExporter.cs
- AssemblyResolver.cs
- DiffuseMaterial.cs
- BitmapVisualManager.cs
- InstanceData.cs
- EditingScope.cs
- SettingsAttributes.cs
- Transform3D.cs
- DataServiceKeyAttribute.cs
- ColumnCollection.cs
- GeneralTransformGroup.cs
- XmlSchemaException.cs
- FixedFlowMap.cs
- DbMetaDataCollectionNames.cs
- Rfc2898DeriveBytes.cs
- RootDesignerSerializerAttribute.cs
- DataSvcMapFile.cs
- OdbcPermission.cs
- MetabaseServerConfig.cs
- DataColumnCollection.cs
- WebPartMinimizeVerb.cs
- DynamicRendererThreadManager.cs
- EntityContainerAssociationSetEnd.cs
- DrawingVisual.cs
- XmlSortKey.cs
- DoubleConverter.cs
- ScrollItemProviderWrapper.cs
- DataTableClearEvent.cs
- DPAPIProtectedConfigurationProvider.cs
- Vector3dCollection.cs
- Domain.cs
- PasswordDeriveBytes.cs
- handlecollector.cs
- BrowserCapabilitiesCodeGenerator.cs
- FixedPageAutomationPeer.cs
- XmlSchemaInfo.cs
- LocationSectionRecord.cs
- SingleConverter.cs
- RenameRuleObjectDialog.Designer.cs
- ConfigurationPropertyCollection.cs
- ObjRef.cs
- MissingSatelliteAssemblyException.cs
- DataServiceQuery.cs
- RSAPKCS1SignatureFormatter.cs
- ObjectPropertyMapping.cs
- DocumentPaginator.cs
- InfoCardXmlSerializer.cs
- FocusWithinProperty.cs
- RawStylusSystemGestureInputReport.cs
- ClockGroup.cs
- LoadGrammarCompletedEventArgs.cs
- DrawingContext.cs
- Rfc2898DeriveBytes.cs
- CroppedBitmap.cs
- ComponentEditorPage.cs
- StringReader.cs
- CssClassPropertyAttribute.cs
- CapabilitiesAssignment.cs
- StyleBamlRecordReader.cs
- UseManagedPresentationBindingElement.cs
- ServiceReference.cs
- CaretElement.cs
- LinkedResource.cs
- MediaElement.cs
- OpenTypeCommon.cs
- TextEffect.cs
- GeometryDrawing.cs
- EntityAdapter.cs
- DesignConnection.cs
- DataKeyCollection.cs
- PeerContact.cs
- SerializationFieldInfo.cs
- InstanceKeyView.cs
- DataGridViewElement.cs
- TempFiles.cs
- QueryResult.cs
- MembershipValidatePasswordEventArgs.cs
- SelectionRangeConverter.cs
- MsmqPoisonMessageException.cs
- EnumType.cs
- TimeoutException.cs
- TextBox.cs
- Types.cs
- TextBoxAutomationPeer.cs
- DataReceivedEventArgs.cs
- SplitterPanel.cs
- AutomationElementIdentifiers.cs