Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EntitySetBaseCollection.cs
- MarkupCompilePass1.cs
- OleDbParameter.cs
- PersonalizablePropertyEntry.cs
- EntityConnectionStringBuilder.cs
- PasswordBoxAutomationPeer.cs
- BoolExpressionVisitors.cs
- TabPanel.cs
- ImageConverter.cs
- DetailsViewAutoFormat.cs
- SqlDataSourceQueryEditorForm.cs
- SupportingTokenAuthenticatorSpecification.cs
- CharEnumerator.cs
- TextTreeExtractElementUndoUnit.cs
- SqlNotificationEventArgs.cs
- baseaxisquery.cs
- DesignerLoader.cs
- MonthChangedEventArgs.cs
- DateTimeSerializationSection.cs
- Stroke2.cs
- ResourceIDHelper.cs
- MetadataPropertyAttribute.cs
- CrossAppDomainChannel.cs
- XmlDesigner.cs
- x509utils.cs
- ConstrainedDataObject.cs
- SoapTypeAttribute.cs
- ManagementOperationWatcher.cs
- MediaContext.cs
- ListControl.cs
- CacheVirtualItemsEvent.cs
- WindowsNonControl.cs
- NumberFormatInfo.cs
- NameHandler.cs
- RouteParametersHelper.cs
- CircleHotSpot.cs
- DeferredSelectedIndexReference.cs
- ManipulationStartedEventArgs.cs
- TextSegment.cs
- ManifestResourceInfo.cs
- ExpressionList.cs
- Effect.cs
- SqlExpander.cs
- PolicyValidationException.cs
- MaskedTextBoxTextEditor.cs
- DataControlFieldCell.cs
- DiscriminatorMap.cs
- XomlCompilerHelpers.cs
- EncoderParameters.cs
- PersonalizationStateInfoCollection.cs
- ClaimTypes.cs
- ElementNotAvailableException.cs
- SqlConnectionStringBuilder.cs
- DataServiceExpressionVisitor.cs
- IDReferencePropertyAttribute.cs
- AbandonedMutexException.cs
- InputElement.cs
- GlyphingCache.cs
- TypeName.cs
- StyleXamlTreeBuilder.cs
- NumberFormatInfo.cs
- BuildManagerHost.cs
- WindowsFormsSectionHandler.cs
- FullTrustAssembly.cs
- HashMembershipCondition.cs
- oledbconnectionstring.cs
- MDIClient.cs
- DataQuery.cs
- BrushConverter.cs
- Fx.cs
- DispatchChannelSink.cs
- VScrollBar.cs
- HttpHandlerAction.cs
- FontStretches.cs
- WindowsScrollBarBits.cs
- Environment.cs
- CreateUserWizard.cs
- SymLanguageType.cs
- XmlHierarchicalEnumerable.cs
- XslAst.cs
- CustomTypeDescriptor.cs
- ServerValidateEventArgs.cs
- MetadataArtifactLoader.cs
- ScrollViewerAutomationPeer.cs
- CodeObjectCreateExpression.cs
- HttpRequestCacheValidator.cs
- InstalledVoice.cs
- PageBreakRecord.cs
- Win32PrintDialog.cs
- AspNetHostingPermission.cs
- ScopeCompiler.cs
- AsyncSerializedWorker.cs
- MediaContextNotificationWindow.cs
- ReadWriteSpinLock.cs
- SafeBitVector32.cs
- MdiWindowListStrip.cs
- PlainXmlWriter.cs
- ProfileEventArgs.cs
- PermissionSetEnumerator.cs
- DependencyPropertyValueSerializer.cs