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
- ListViewDeletedEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- Graphics.cs
- TemplatePropertyEntry.cs
- SystemNetHelpers.cs
- TreeNodeBinding.cs
- ObjectTag.cs
- MessageDirection.cs
- UnsafeNativeMethods.cs
- SID.cs
- CompositeFontInfo.cs
- ProcessInfo.cs
- PopupEventArgs.cs
- SqlFlattener.cs
- CodeDelegateInvokeExpression.cs
- TraceRecord.cs
- AccessText.cs
- RegexMatchCollection.cs
- TcpDuplicateContext.cs
- UriTemplateClientFormatter.cs
- EntityDescriptor.cs
- SrgsElement.cs
- GetReadStreamResult.cs
- CompiledRegexRunner.cs
- ImageButton.cs
- FileDialog.cs
- TemplateContent.cs
- SimpleExpression.cs
- WebProxyScriptElement.cs
- XamlInt32CollectionSerializer.cs
- PropertyIDSet.cs
- DbConnectionHelper.cs
- TransportContext.cs
- XmlNode.cs
- HostingEnvironment.cs
- CodePropertyReferenceExpression.cs
- TemplatePagerField.cs
- SafeReversePInvokeHandle.cs
- WindowsRebar.cs
- DataGridViewColumn.cs
- WorkflowRuntimeSection.cs
- TextBoxBase.cs
- MediaSystem.cs
- DesignerDataColumn.cs
- VolatileResourceManager.cs
- LinkDescriptor.cs
- StyleTypedPropertyAttribute.cs
- ServiceThrottlingElement.cs
- PatternMatcher.cs
- MapPathBasedVirtualPathProvider.cs
- DefinitionBase.cs
- XmlChildEnumerator.cs
- ServiceInfo.cs
- BamlTreeNode.cs
- DataServiceContext.cs
- SqlServer2KCompatibilityAnnotation.cs
- MenuCommands.cs
- XmlSchemaAnnotation.cs
- TableItemStyle.cs
- DoubleStorage.cs
- HtmlForm.cs
- EntityModelBuildProvider.cs
- DesignTimeType.cs
- BitStack.cs
- InvariantComparer.cs
- SafeHandle.cs
- TransactionalPackage.cs
- HotSpotCollection.cs
- OdbcConnectionString.cs
- Helpers.cs
- WhitespaceRuleReader.cs
- SpecialTypeDataContract.cs
- DataGridItemEventArgs.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SafeTimerHandle.cs
- ChangeInterceptorAttribute.cs
- SiteMapNodeCollection.cs
- SignatureToken.cs
- MeshGeometry3D.cs
- FontFamilyIdentifier.cs
- CfgArc.cs
- MinMaxParagraphWidth.cs
- FixedTextContainer.cs
- ReadOnlyTernaryTree.cs
- EntityObject.cs
- OrderedDictionary.cs
- SuppressIldasmAttribute.cs
- ProtocolsConfigurationEntry.cs
- FakeModelPropertyImpl.cs
- XhtmlConformanceSection.cs
- Bezier.cs
- DeclarationUpdate.cs
- Label.cs
- AlphabetConverter.cs
- HwndSourceKeyboardInputSite.cs
- DataGridViewColumnEventArgs.cs
- ScriptIgnoreAttribute.cs
- ProviderConnectionPoint.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RegexNode.cs