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
- ToolStripPanelRenderEventArgs.cs
- ManifestSignedXml.cs
- FieldNameLookup.cs
- NaturalLanguageHyphenator.cs
- MetadataUtilsSmi.cs
- WebPartDisplayMode.cs
- ComboBoxAutomationPeer.cs
- _ListenerRequestStream.cs
- HttpContextWrapper.cs
- MultipartContentParser.cs
- FormView.cs
- ConnectorEditor.cs
- CollectionViewGroupRoot.cs
- SQLInt16Storage.cs
- SqlMetaData.cs
- CqlLexer.cs
- PerformanceCountersElement.cs
- FileIOPermission.cs
- DataViewManager.cs
- BufferModeSettings.cs
- Range.cs
- TreeNodeCollection.cs
- ServiceBusyException.cs
- FileDialogCustomPlace.cs
- DbConnectionPoolOptions.cs
- DecoderExceptionFallback.cs
- ObjectItemConventionAssemblyLoader.cs
- Point.cs
- DataFieldCollectionEditor.cs
- PeerNameRecordCollection.cs
- CompositionAdorner.cs
- DecimalConstantAttribute.cs
- Root.cs
- InvalidEnumArgumentException.cs
- XmlWriterDelegator.cs
- UnauthorizedWebPart.cs
- LoggedException.cs
- BoundPropertyEntry.cs
- DeleteMemberBinder.cs
- ScriptControl.cs
- GridViewRowEventArgs.cs
- GridViewEditEventArgs.cs
- ToolStripOverflowButton.cs
- SerializationException.cs
- ListArgumentProvider.cs
- XmlCollation.cs
- RecordConverter.cs
- CommandConverter.cs
- WebBaseEventKeyComparer.cs
- EditorPart.cs
- XmlMtomReader.cs
- DrawingCollection.cs
- NativeMethods.cs
- RegisteredExpandoAttribute.cs
- DockPattern.cs
- DelegateSerializationHolder.cs
- PolicyChain.cs
- ActivitySurrogateSelector.cs
- FileSystemWatcher.cs
- OdbcDataReader.cs
- NetCodeGroup.cs
- Trace.cs
- SqlMethodCallConverter.cs
- PrimitiveList.cs
- CodeDirectoryCompiler.cs
- Accessors.cs
- DigitShape.cs
- Form.cs
- FixedPageProcessor.cs
- ScriptHandlerFactory.cs
- ByteAnimationUsingKeyFrames.cs
- ConsoleKeyInfo.cs
- ApplicationFileParser.cs
- HostExecutionContextManager.cs
- BamlTreeNode.cs
- AuthenticationManager.cs
- FontUnitConverter.cs
- DataSourceProvider.cs
- WhitespaceSignificantCollectionAttribute.cs
- InfoCardCryptoHelper.cs
- DecoderBestFitFallback.cs
- Exceptions.cs
- TraceContextEventArgs.cs
- Adorner.cs
- OneOfConst.cs
- SslStreamSecurityUpgradeProvider.cs
- MouseGestureConverter.cs
- CombinedGeometry.cs
- MethodBuilder.cs
- Point3DConverter.cs
- TextDecorationCollection.cs
- GiveFeedbackEventArgs.cs
- DiscardableAttribute.cs
- RichTextBoxAutomationPeer.cs
- LambdaCompiler.cs
- ReferenceAssemblyAttribute.cs
- Point3DCollection.cs
- ProjectedSlot.cs
- AddInPipelineAttributes.cs
- ObjectPersistData.cs