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
- GridViewEditEventArgs.cs
- ToolStripCodeDomSerializer.cs
- WebBrowserNavigatedEventHandler.cs
- UDPClient.cs
- VerticalAlignConverter.cs
- TypeLoadException.cs
- CheckedListBox.cs
- DiscoveryDefaults.cs
- DelegatedStream.cs
- EditorZoneBase.cs
- OutputCacheModule.cs
- Choices.cs
- IMembershipProvider.cs
- Splitter.cs
- Zone.cs
- Matrix3DValueSerializer.cs
- SqlXmlStorage.cs
- IndexerReference.cs
- PageParserFilter.cs
- PrintSchema.cs
- WebPageTraceListener.cs
- ObjectItemCachedAssemblyLoader.cs
- BinaryObjectInfo.cs
- dbdatarecord.cs
- ProfessionalColors.cs
- GuidelineSet.cs
- DataGridViewColumnHeaderCell.cs
- URIFormatException.cs
- WebEventTraceProvider.cs
- SoapExtensionTypeElementCollection.cs
- PasswordRecovery.cs
- StandardBindingImporter.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- GroupItemAutomationPeer.cs
- ActiveXMessageFormatter.cs
- ManagedWndProcTracker.cs
- DebugView.cs
- TypedColumnHandler.cs
- PropertyChangingEventArgs.cs
- PopOutPanel.cs
- CompositeControl.cs
- RuntimeDelegateArgument.cs
- RadioButton.cs
- PageContentCollection.cs
- ListBindingHelper.cs
- SectionInput.cs
- RemoteEndpointMessageProperty.cs
- EmptyReadOnlyDictionaryInternal.cs
- OptionalMessageQuery.cs
- CodeMemberProperty.cs
- LabelTarget.cs
- SafeNativeMethods.cs
- ServicePointManager.cs
- Label.cs
- ValidationRuleCollection.cs
- TextShapeableCharacters.cs
- FileRecordSequence.cs
- ApplicationServiceManager.cs
- HashCodeCombiner.cs
- TreeView.cs
- UpdateException.cs
- BaseTemplateBuildProvider.cs
- UIElement3D.cs
- FontUnit.cs
- PtsHelper.cs
- StatusStrip.cs
- Int32CAMarshaler.cs
- HTTPNotFoundHandler.cs
- MultipartContentParser.cs
- XamlReaderHelper.cs
- InternalResources.cs
- BindingCompleteEventArgs.cs
- TraceEventCache.cs
- RepeaterItemCollection.cs
- CaseExpr.cs
- ConnectionsZoneDesigner.cs
- Int32CollectionConverter.cs
- PageClientProxyGenerator.cs
- TypefaceCollection.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ListViewInsertedEventArgs.cs
- SqlConnectionStringBuilder.cs
- SQLInt32Storage.cs
- ItemCollection.cs
- InputQueue.cs
- PointUtil.cs
- WorkflowRuntimeServiceElementCollection.cs
- GlyphRunDrawing.cs
- X509WindowsSecurityToken.cs
- ThreadStartException.cs
- XmlRawWriter.cs
- _LazyAsyncResult.cs
- DefaultValueTypeConverter.cs
- ServiceModelStringsVersion1.cs
- IPPacketInformation.cs
- UIElementHelper.cs
- CacheMemory.cs
- TemplateBamlRecordReader.cs
- SchemaInfo.cs
- DataSourceHelper.cs