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
- CodeRemoveEventStatement.cs
- RedBlackList.cs
- RemoteHelper.cs
- DataGridHeaderBorder.cs
- BufferedStream.cs
- KeyPressEvent.cs
- DiscoveryReference.cs
- HtmlTitle.cs
- MdiWindowListStrip.cs
- FontDialog.cs
- PrivilegedConfigurationManager.cs
- SqlMultiplexer.cs
- DataServiceQueryOfT.cs
- EmptyReadOnlyDictionaryInternal.cs
- LineVisual.cs
- ProfessionalColors.cs
- ByteStreamMessage.cs
- FixedSOMPageElement.cs
- Parser.cs
- DispatcherObject.cs
- Label.cs
- XmlUnspecifiedAttribute.cs
- Style.cs
- FixedSOMLineRanges.cs
- MemberCollection.cs
- CompositeFontParser.cs
- EventWaitHandle.cs
- RefreshInfo.cs
- EffectiveValueEntry.cs
- DataPagerField.cs
- OdbcEnvironment.cs
- ContainerActivationHelper.cs
- ResourceManagerWrapper.cs
- ReliableOutputSessionChannel.cs
- CallContext.cs
- X509Extension.cs
- SplineKeyFrames.cs
- MimeMapping.cs
- CombinedGeometry.cs
- XmlSchemaAttributeGroup.cs
- ArithmeticException.cs
- SafeNativeMethods.cs
- SerializationBinder.cs
- UIntPtr.cs
- RegisteredHiddenField.cs
- _AutoWebProxyScriptHelper.cs
- AbsoluteQuery.cs
- Semaphore.cs
- PreviewPageInfo.cs
- DataGridViewCellStateChangedEventArgs.cs
- AnnotationComponentManager.cs
- DockPanel.cs
- FixedStringLookup.cs
- BindingsCollection.cs
- SplitContainer.cs
- SmtpAuthenticationManager.cs
- XhtmlBasicTextViewAdapter.cs
- TemplateLookupAction.cs
- LifetimeServices.cs
- WebProxyScriptElement.cs
- NavigatorOutput.cs
- SchemaLookupTable.cs
- DataGridViewCellLinkedList.cs
- StateMachine.cs
- EventManager.cs
- SortableBindingList.cs
- ContentElement.cs
- odbcmetadatacollectionnames.cs
- CfgRule.cs
- SizeConverter.cs
- SystemMulticastIPAddressInformation.cs
- DataGridHeaderBorder.cs
- TransportChannelFactory.cs
- FixedSOMSemanticBox.cs
- _NegoStream.cs
- ByteStorage.cs
- RowVisual.cs
- SqlRewriteScalarSubqueries.cs
- MemberInfoSerializationHolder.cs
- SerializationUtility.cs
- RequestContext.cs
- PrincipalPermission.cs
- DataTable.cs
- SplashScreenNativeMethods.cs
- WindowsGraphics.cs
- OracleString.cs
- DesignerDataSourceView.cs
- TextContainerChangeEventArgs.cs
- TypeFieldSchema.cs
- ConvertEvent.cs
- IImplicitResourceProvider.cs
- SqlMethodCallConverter.cs
- QueryableFilterUserControl.cs
- ValueChangedEventManager.cs
- IgnoreSectionHandler.cs
- InternalResources.cs
- DetailsViewDeleteEventArgs.cs
- ProtectedConfigurationSection.cs
- StylusShape.cs
- UIPropertyMetadata.cs