Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BrowserDefinition.cs
- BitHelper.cs
- wmiprovider.cs
- Sentence.cs
- GridViewSelectEventArgs.cs
- ConfigurationPropertyAttribute.cs
- DataGridItemEventArgs.cs
- ProcessHostFactoryHelper.cs
- DbgUtil.cs
- BindingList.cs
- MultipartIdentifier.cs
- DataRelation.cs
- DbConnectionPoolOptions.cs
- ProjectionCamera.cs
- InputMethodStateChangeEventArgs.cs
- SqlDataSourceStatusEventArgs.cs
- SecurityMode.cs
- SchemaElementLookUpTable.cs
- _SslState.cs
- InitializerFacet.cs
- SQLBinaryStorage.cs
- StylusCollection.cs
- CollectionChangeEventArgs.cs
- Switch.cs
- DateRangeEvent.cs
- LeaseManager.cs
- _ListenerRequestStream.cs
- SmiSettersStream.cs
- DriveNotFoundException.cs
- SchemaElementLookUpTable.cs
- OutputCacheSettings.cs
- DataTemplateSelector.cs
- EntityContainerEntitySet.cs
- XhtmlBasicFormAdapter.cs
- InputGestureCollection.cs
- InternalSafeNativeMethods.cs
- FileRegion.cs
- CallContext.cs
- CollectionView.cs
- Msmq4SubqueuePoisonHandler.cs
- TrustVersion.cs
- EpmContentDeSerializer.cs
- StylusEditingBehavior.cs
- SignatureHelper.cs
- TransformerInfo.cs
- PropertyRef.cs
- Normalization.cs
- ListBox.cs
- Lazy.cs
- _FixedSizeReader.cs
- CaseInsensitiveHashCodeProvider.cs
- SQLGuidStorage.cs
- StylusPointCollection.cs
- BitStack.cs
- ByteAnimationUsingKeyFrames.cs
- Win32Native.cs
- FixedLineResult.cs
- GroupQuery.cs
- PanelDesigner.cs
- TypeUsage.cs
- OperationResponse.cs
- SqlDesignerDataSourceView.cs
- LicenseContext.cs
- LineVisual.cs
- OutputCacheModule.cs
- ConfigXmlAttribute.cs
- InvocationExpression.cs
- XmlDownloadManager.cs
- WebBrowserNavigatingEventHandler.cs
- RpcAsyncResult.cs
- XmlUtil.cs
- MatrixValueSerializer.cs
- OleDbCommand.cs
- DesignerActionPropertyItem.cs
- ReadOnlyPropertyMetadata.cs
- DynamicVirtualDiscoSearcher.cs
- XmlElementAttributes.cs
- HtmlTableRowCollection.cs
- PermissionAttributes.cs
- BinaryNegotiation.cs
- Int64.cs
- Listbox.cs
- StreamReader.cs
- FolderBrowserDialog.cs
- PointF.cs
- ToRequest.cs
- DocumentManager.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- GeneratedView.cs
- SystemGatewayIPAddressInformation.cs
- WeakReference.cs
- ToolStripComboBox.cs
- UndoEngine.cs
- ListControl.cs
- PrimitiveXmlSerializers.cs
- SHA512Managed.cs
- NameValueConfigurationElement.cs
- SpeechEvent.cs
- XmlUrlResolver.cs
- SBCSCodePageEncoding.cs