Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TreeNodeSelectionProcessor.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BamlTreeUpdater.cs
- InputProcessorProfiles.cs
- Utils.cs
- DoubleLinkList.cs
- PropertyEmitterBase.cs
- PreDigestedSignedInfo.cs
- NameSpaceEvent.cs
- GradientBrush.cs
- ParameterBuilder.cs
- UseManagedPresentationElement.cs
- HostingEnvironmentSection.cs
- BuildManagerHost.cs
- _Win32.cs
- OleDbCommand.cs
- StructuredTypeEmitter.cs
- ValidationEventArgs.cs
- ExpandSegment.cs
- ImageSource.cs
- NonPrimarySelectionGlyph.cs
- XmlProcessingInstruction.cs
- TextDecoration.cs
- AliasedExpr.cs
- TreeBuilderBamlTranslator.cs
- HttpResponse.cs
- ControlSerializer.cs
- FlowDocumentPageViewerAutomationPeer.cs
- VerificationAttribute.cs
- EntityDataSource.cs
- CancellableEnumerable.cs
- SHA384Managed.cs
- mediaeventshelper.cs
- BinaryWriter.cs
- NotifyCollectionChangedEventArgs.cs
- MenuCommand.cs
- InterleavedZipPartStream.cs
- SqlCachedBuffer.cs
- BuildProviderAppliesToAttribute.cs
- ExpressionBuilderContext.cs
- GenericUriParser.cs
- WebDisplayNameAttribute.cs
- SchemeSettingElementCollection.cs
- ObjectListItem.cs
- RadioButton.cs
- CapabilitiesUse.cs
- assemblycache.cs
- ContainerFilterService.cs
- BoolExpr.cs
- StringArrayConverter.cs
- versioninfo.cs
- EntityConnectionStringBuilderItem.cs
- TemplateManager.cs
- StatusCommandUI.cs
- SendMailErrorEventArgs.cs
- Nullable.cs
- ListBase.cs
- CompiledQueryCacheKey.cs
- WebBrowser.cs
- Page.cs
- RoutedPropertyChangedEventArgs.cs
- SettingsPropertyCollection.cs
- EntityDataSource.cs
- DataGridViewColumnCollection.cs
- WebPartMenuStyle.cs
- SrgsGrammarCompiler.cs
- BitmapVisualManager.cs
- ChannelCredentials.cs
- BindableAttribute.cs
- ReverseInheritProperty.cs
- ImageField.cs
- OneWayBindingElement.cs
- Journaling.cs
- OLEDB_Enum.cs
- AudioBase.cs
- DataSet.cs
- AppDomain.cs
- DataGridViewColumn.cs
- DockingAttribute.cs
- HttpFileCollection.cs
- ISO2022Encoding.cs
- ObjectConverter.cs
- TypedDatasetGenerator.cs
- SiteMapDataSource.cs
- WebConfigurationHost.cs
- BindingSource.cs
- DuplexSecurityProtocolFactory.cs
- EncoderFallback.cs
- LocalIdCollection.cs
- CompilerGlobalScopeAttribute.cs
- SystemFonts.cs
- SplayTreeNode.cs
- MultiAsyncResult.cs
- AutomationPattern.cs
- NotConverter.cs
- ComponentEvent.cs
- Marshal.cs
- SvcMapFileSerializer.cs
- EntityDataSourceContextDisposingEventArgs.cs
- GridViewRowPresenterBase.cs