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
- Connection.cs
- XmlUnspecifiedAttribute.cs
- WebPartMinimizeVerb.cs
- MobileSysDescriptionAttribute.cs
- ListenerTraceUtility.cs
- Tool.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PrintDialogException.cs
- StickyNoteHelper.cs
- SoapAttributeAttribute.cs
- HtmlInputReset.cs
- UniqueID.cs
- WindowsComboBox.cs
- TextEndOfSegment.cs
- DataTableCollection.cs
- AnimationException.cs
- DateTimeUtil.cs
- MouseActionConverter.cs
- EventHandlerList.cs
- ReadOnlyTernaryTree.cs
- PreservationFileWriter.cs
- ChildrenQuery.cs
- HostProtectionException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- NamedPermissionSet.cs
- HitTestWithGeometryDrawingContextWalker.cs
- LogEntrySerializationException.cs
- GridViewRowCollection.cs
- ObjectDataSourceView.cs
- SQLDecimalStorage.cs
- ToolStripSeparatorRenderEventArgs.cs
- AlphaSortedEnumConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- OleAutBinder.cs
- ArrayEditor.cs
- SqlProvider.cs
- TraceInternal.cs
- Component.cs
- remotingproxy.cs
- WindowsListView.cs
- RangeValidator.cs
- JavascriptCallbackBehaviorAttribute.cs
- CodeMemberProperty.cs
- PartialClassGenerationTask.cs
- ToolStripItemImageRenderEventArgs.cs
- RSAProtectedConfigurationProvider.cs
- ComponentCollection.cs
- ButtonColumn.cs
- StickyNoteContentControl.cs
- ThreadExceptionDialog.cs
- DragDrop.cs
- HandlerBase.cs
- ZoomPercentageConverter.cs
- TextEditorSpelling.cs
- DbBuffer.cs
- DynamicUpdateCommand.cs
- EmptyEnumerator.cs
- PartitionedStreamMerger.cs
- HttpWebRequestElement.cs
- BaseProcessor.cs
- ErrorWebPart.cs
- StylusPointPropertyInfo.cs
- ControlValuePropertyAttribute.cs
- UIElementParagraph.cs
- TreeNodeStyle.cs
- TableItemStyle.cs
- SmtpNegotiateAuthenticationModule.cs
- WizardStepBase.cs
- CodeObjectCreateExpression.cs
- TypographyProperties.cs
- StrongTypingException.cs
- MetadataItem.cs
- DocumentPaginator.cs
- Overlapped.cs
- TextElementCollectionHelper.cs
- ColorKeyFrameCollection.cs
- QilList.cs
- Int64AnimationBase.cs
- StyleSelector.cs
- HttpContext.cs
- DBSchemaRow.cs
- safelink.cs
- PageContentCollection.cs
- GeneralTransform.cs
- StructuralCache.cs
- XhtmlConformanceSection.cs
- Storyboard.cs
- SspiSafeHandles.cs
- MetafileHeader.cs
- ImplicitInputBrush.cs
- DeferrableContentConverter.cs
- DataBoundControlHelper.cs
- AppDomainManager.cs
- ActivityBuilder.cs
- Token.cs
- DataGridViewCell.cs
- MD5HashHelper.cs
- BindStream.cs
- GenericEnumerator.cs
- SqlDeflator.cs