Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _TransmitFileOverlappedAsyncResult.cs
- ContextStack.cs
- PagedDataSource.cs
- ReservationNotFoundException.cs
- XmlSchemaSimpleContent.cs
- TraceUtility.cs
- CloudCollection.cs
- AutomationElement.cs
- TextBoxRenderer.cs
- DispatchWrapper.cs
- UpDownBase.cs
- NetworkAddressChange.cs
- CompilerGlobalScopeAttribute.cs
- FeatureManager.cs
- SqlFlattener.cs
- DependencyPropertyKind.cs
- SmtpFailedRecipientException.cs
- StylusPlugin.cs
- TouchEventArgs.cs
- MenuAutomationPeer.cs
- InitializerFacet.cs
- WebRequestModulesSection.cs
- ItemsControl.cs
- recordstatescratchpad.cs
- RegisteredExpandoAttribute.cs
- PipelineModuleStepContainer.cs
- ViewStateException.cs
- DataMemberAttribute.cs
- LocalValueEnumerator.cs
- uribuilder.cs
- WebCodeGenerator.cs
- QueryContinueDragEventArgs.cs
- RedirectionProxy.cs
- CompositeCollectionView.cs
- TextDecorationUnitValidation.cs
- Exceptions.cs
- ConfigurationSettings.cs
- Dispatcher.cs
- HwndSourceParameters.cs
- LineSegment.cs
- SyndicationElementExtension.cs
- RepeaterItemEventArgs.cs
- HttpWriter.cs
- AdditionalEntityFunctions.cs
- IWorkflowDebuggerService.cs
- TransformPattern.cs
- IntAverageAggregationOperator.cs
- StringToken.cs
- FileController.cs
- COM2AboutBoxPropertyDescriptor.cs
- SemaphoreSlim.cs
- DataRowCollection.cs
- WindowShowOrOpenTracker.cs
- SqlSelectClauseBuilder.cs
- ListViewTableRow.cs
- Memoizer.cs
- templategroup.cs
- InputEventArgs.cs
- CommandDevice.cs
- WriteableBitmap.cs
- CodeNamespace.cs
- DashStyle.cs
- ByteStreamBufferedMessageData.cs
- PropertyPushdownHelper.cs
- ErrorLog.cs
- NullableBoolConverter.cs
- TextMetrics.cs
- Win32SafeHandles.cs
- Vector3DAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- AdPostCacheSubstitution.cs
- CodeGenerator.cs
- Permission.cs
- SHA1CryptoServiceProvider.cs
- RowParagraph.cs
- CachedRequestParams.cs
- InputReferenceExpression.cs
- XComponentModel.cs
- InstanceOwnerException.cs
- ManualResetEvent.cs
- METAHEADER.cs
- CollectionViewGroupInternal.cs
- ResourceContainer.cs
- InfoCardCryptoHelper.cs
- DoubleAnimation.cs
- SID.cs
- EntityDesignPluralizationHandler.cs
- QueryableDataSource.cs
- TextParagraphCache.cs
- HtmlEncodedRawTextWriter.cs
- CallId.cs
- HMACSHA1.cs
- XmlDataSourceView.cs
- Win32SafeHandles.cs
- RowUpdatingEventArgs.cs
- GestureRecognizer.cs
- DataSourceIDConverter.cs
- XmlTypeAttribute.cs
- SamlDelegatingWriter.cs
- EventListener.cs