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
- __Error.cs
- ObservableCollection.cs
- TabPage.cs
- PropertyMapper.cs
- UniqueConstraint.cs
- RegexParser.cs
- ExtendedPropertiesHandler.cs
- SoapObjectWriter.cs
- SpecialNameAttribute.cs
- SafeLocalMemHandle.cs
- XmlLangPropertyAttribute.cs
- TypeDescriptionProviderAttribute.cs
- BinaryConverter.cs
- AsnEncodedData.cs
- SoapWriter.cs
- TypeGeneratedEventArgs.cs
- SecurityKeyType.cs
- ComplexObject.cs
- RewritingProcessor.cs
- SocketElement.cs
- EnterpriseServicesHelper.cs
- SessionStateModule.cs
- WindowsSlider.cs
- PagesSection.cs
- Int32Collection.cs
- WpfXamlLoader.cs
- ExpressionVisitor.cs
- CodeSnippetStatement.cs
- QilLoop.cs
- HttpSessionStateBase.cs
- DragEventArgs.cs
- StreamingContext.cs
- DateBoldEvent.cs
- DataSet.cs
- XmlSequenceWriter.cs
- IDataContractSurrogate.cs
- DecimalFormatter.cs
- InternalsVisibleToAttribute.cs
- MetadataPropertyCollection.cs
- SplitterPanel.cs
- X509ImageLogo.cs
- SharedPersonalizationStateInfo.cs
- BamlBinaryReader.cs
- XmlHierarchicalEnumerable.cs
- SQLMoney.cs
- XhtmlBasicLabelAdapter.cs
- OptimalBreakSession.cs
- LifetimeServices.cs
- SimpleWorkerRequest.cs
- DataShape.cs
- VectorValueSerializer.cs
- PrePrepareMethodAttribute.cs
- HttpListenerElement.cs
- ReservationNotFoundException.cs
- DecimalAnimation.cs
- FamilyMap.cs
- CalendarDay.cs
- Win32.cs
- TreeNodeCollection.cs
- Activation.cs
- SemanticResolver.cs
- DependencyObjectProvider.cs
- HyperLinkStyle.cs
- ISFClipboardData.cs
- DataGridViewTopLeftHeaderCell.cs
- FlatButtonAppearance.cs
- CodeEventReferenceExpression.cs
- ObjectListSelectEventArgs.cs
- SchemaEntity.cs
- EndOfStreamException.cs
- FormViewUpdateEventArgs.cs
- DefaultTextStore.cs
- WebHttpBindingElement.cs
- ResourceReferenceExpressionConverter.cs
- TemplateEditingFrame.cs
- HtmlHead.cs
- XmlExceptionHelper.cs
- Mapping.cs
- AuthenticateEventArgs.cs
- SelectorItemAutomationPeer.cs
- SQLBinaryStorage.cs
- ValidationPropertyAttribute.cs
- glyphs.cs
- GeneratedView.cs
- followingsibling.cs
- WebPartCatalogCloseVerb.cs
- ScrollItemPattern.cs
- BCryptHashAlgorithm.cs
- SetStoryboardSpeedRatio.cs
- CodeDomLocalizationProvider.cs
- CompositeCollection.cs
- FrameworkContentElement.cs
- DelegatedStream.cs
- ToolStripMenuItem.cs
- AsyncWaitHandle.cs
- AnnotationMap.cs
- ChtmlSelectionListAdapter.cs
- UniqueID.cs
- TextCompositionEventArgs.cs
- WriterOutput.cs