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
- SoapEnumAttribute.cs
- OracleDateTime.cs
- XmlNotation.cs
- ObjectListCommandsPage.cs
- TraceUtility.cs
- WindowsProgressbar.cs
- WebPartMenu.cs
- WindowsIPAddress.cs
- PriorityQueue.cs
- StronglyTypedResourceBuilder.cs
- CodeCompiler.cs
- XPathException.cs
- AssemblyAttributesGoHere.cs
- EmbeddedMailObject.cs
- PagedDataSource.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ReadOnlyPermissionSet.cs
- UrlEncodedParameterWriter.cs
- Vector3DValueSerializer.cs
- UIElementPropertyUndoUnit.cs
- HttpHostedTransportConfiguration.cs
- XmlAttributeProperties.cs
- SchemaNotation.cs
- SignatureToken.cs
- GZipStream.cs
- ProcessHost.cs
- SiteMapSection.cs
- HttpHandlerActionCollection.cs
- Encoder.cs
- PartialTrustHelpers.cs
- SymLanguageType.cs
- TimeSpanMinutesConverter.cs
- Propagator.cs
- CodeLabeledStatement.cs
- PropertyEmitter.cs
- WebBaseEventKeyComparer.cs
- IgnoreFileBuildProvider.cs
- DoubleLinkList.cs
- TemplateBindingExpression.cs
- DoubleAnimationUsingPath.cs
- XpsS0ValidatingLoader.cs
- SqlNamer.cs
- SafePointer.cs
- QuestionEventArgs.cs
- RtfToken.cs
- HttpHandlersSection.cs
- List.cs
- Visual3D.cs
- X509IssuerSerialKeyIdentifierClause.cs
- SignedXml.cs
- StateMachineWorkflow.cs
- DBNull.cs
- elementinformation.cs
- DocumentApplication.cs
- TimeoutValidationAttribute.cs
- ButtonStandardAdapter.cs
- ViewStateModeByIdAttribute.cs
- OracleDateTime.cs
- XMLSyntaxException.cs
- Transform3D.cs
- XmlSchemaAnyAttribute.cs
- NGCSerializationManager.cs
- ProcessHostConfigUtils.cs
- VirtualPath.cs
- ToolStripButton.cs
- DetailsViewInsertedEventArgs.cs
- InputBindingCollection.cs
- WindowsAuthenticationEventArgs.cs
- Serializer.cs
- TransformerTypeCollection.cs
- CorePropertiesFilter.cs
- ReadContentAsBinaryHelper.cs
- CompleteWizardStep.cs
- XsdBuilder.cs
- WebSysDescriptionAttribute.cs
- SiteMapDataSource.cs
- ProcessModelInfo.cs
- InOutArgument.cs
- RegexGroup.cs
- StorageTypeMapping.cs
- BitmapMetadata.cs
- DocumentPage.cs
- HandleCollector.cs
- Set.cs
- XmlUrlResolver.cs
- TabControlAutomationPeer.cs
- DrawListViewSubItemEventArgs.cs
- PolyQuadraticBezierSegment.cs
- StructuredTypeEmitter.cs
- NamespaceTable.cs
- TableColumn.cs
- Range.cs
- StickyNoteAnnotations.cs
- DocumentScope.cs
- FormsAuthenticationEventArgs.cs
- Signature.cs
- InputProcessorProfiles.cs
- DataGridViewSelectedRowCollection.cs
- WebPartCatalogAddVerb.cs
- FrugalMap.cs