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
- DependencyPropertyAttribute.cs
- ListChangedEventArgs.cs
- XmlNamedNodeMap.cs
- SmtpClient.cs
- UserPreferenceChangedEventArgs.cs
- BasicCellRelation.cs
- pingexception.cs
- TimelineGroup.cs
- HelloOperationCD1AsyncResult.cs
- InternalDuplexChannelListener.cs
- XmlCompatibilityReader.cs
- DrawingGroupDrawingContext.cs
- SignatureSummaryDialog.cs
- UpdateManifestForBrowserApplication.cs
- CheckBoxField.cs
- BufferedGraphicsManager.cs
- DragSelectionMessageFilter.cs
- ToolTipService.cs
- X509Utils.cs
- SQLInt64Storage.cs
- EntityConnection.cs
- StyleSelector.cs
- AttachInfo.cs
- XamlStream.cs
- DeferredReference.cs
- FileLogRecordHeader.cs
- AdministrationHelpers.cs
- DebuggerAttributes.cs
- HtmlInputHidden.cs
- CompilerHelpers.cs
- XamlSerializerUtil.cs
- CodeMemberField.cs
- XmlILModule.cs
- EntityDataSourceWrapper.cs
- SettingsSavedEventArgs.cs
- Property.cs
- ProtectedProviderSettings.cs
- ClientTargetCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- ValidationSummary.cs
- ExceptionRoutedEventArgs.cs
- XmlReaderDelegator.cs
- ISCIIEncoding.cs
- HttpBrowserCapabilitiesWrapper.cs
- CopyAction.cs
- PaintEvent.cs
- TransformedBitmap.cs
- WebConfigurationManager.cs
- XmlSchemaCompilationSettings.cs
- SchemaEntity.cs
- UdpSocket.cs
- QuotedPrintableStream.cs
- MetadataSource.cs
- EncodingNLS.cs
- TextSimpleMarkerProperties.cs
- TextSelectionProcessor.cs
- DataGridViewCellStyleConverter.cs
- TableLayoutStyle.cs
- GrammarBuilderRuleRef.cs
- SuppressMergeCheckAttribute.cs
- ECDiffieHellmanCng.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- GenericsInstances.cs
- PackageRelationshipCollection.cs
- sqlstateclientmanager.cs
- Cursor.cs
- ColorIndependentAnimationStorage.cs
- SiteMap.cs
- Currency.cs
- HttpCacheVary.cs
- tooltip.cs
- MarshalByValueComponent.cs
- SqlWorkflowInstanceStoreLock.cs
- ConnectionStringsExpressionEditor.cs
- LogicalCallContext.cs
- RoleExceptions.cs
- DecoderReplacementFallback.cs
- PageAction.cs
- XPathChildIterator.cs
- XmlDsigSep2000.cs
- SchemaImporterExtensionElement.cs
- HttpInputStream.cs
- PictureBox.cs
- CacheSection.cs
- XmlDataSource.cs
- DataRelationCollection.cs
- FunctionDetailsReader.cs
- Pts.cs
- SQlBooleanStorage.cs
- PrimaryKeyTypeConverter.cs
- PageThemeBuildProvider.cs
- OLEDB_Util.cs
- ProfilePropertySettingsCollection.cs
- FixedNode.cs
- Trace.cs
- ExtensionFile.cs
- Sql8ConformanceChecker.cs
- ILGenerator.cs
- FacetValueContainer.cs
- TreeViewAutomationPeer.cs