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
- ClientApiGenerator.cs
- IntPtr.cs
- RoutedEventValueSerializer.cs
- Tracer.cs
- ImageMetadata.cs
- InvalidCommandTreeException.cs
- NameTable.cs
- EntityTypeEmitter.cs
- ToggleProviderWrapper.cs
- SortedList.cs
- ResourceExpressionBuilder.cs
- EdmRelationshipRoleAttribute.cs
- ListItem.cs
- XmlSchemaSimpleContentRestriction.cs
- TableLayoutPanelResizeGlyph.cs
- StateMachineWorkflowDesigner.cs
- TrackBarRenderer.cs
- MtomMessageEncodingElement.cs
- RootProjectionNode.cs
- CharAnimationUsingKeyFrames.cs
- ExtensionSimplifierMarkupObject.cs
- TopClause.cs
- FileLogRecordEnumerator.cs
- FindSimilarActivitiesVerb.cs
- Int64.cs
- Properties.cs
- GenericRootAutomationPeer.cs
- ConfigViewGenerator.cs
- InputBinding.cs
- BinaryWriter.cs
- Page.cs
- HttpResponseHeader.cs
- PointAnimationUsingKeyFrames.cs
- Stylesheet.cs
- ZipPackagePart.cs
- SchemaImporter.cs
- ByteStreamGeometryContext.cs
- TdsParserStateObject.cs
- ConstrainedGroup.cs
- InputBindingCollection.cs
- WebPartZoneDesigner.cs
- GenericIdentity.cs
- RightsController.cs
- InternalCache.cs
- XmlSchemaInfo.cs
- ContentDesigner.cs
- Window.cs
- ObjectDataSourceMethodEventArgs.cs
- X500Name.cs
- RegexMatch.cs
- UrlRoutingHandler.cs
- HttpHandlersSection.cs
- MsmqIntegrationSecurityMode.cs
- CallInfo.cs
- ManagedFilter.cs
- RetrieveVirtualItemEventArgs.cs
- TreeNodeStyleCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XmlAnyElementAttribute.cs
- OleDbInfoMessageEvent.cs
- GACMembershipCondition.cs
- ImageSource.cs
- SortQuery.cs
- DataColumnMappingCollection.cs
- PlaceHolder.cs
- PackageDigitalSignature.cs
- BasicAsyncResult.cs
- ReversePositionQuery.cs
- AssemblyBuilder.cs
- Encoding.cs
- DesignerVerb.cs
- MenuItem.cs
- ArraySortHelper.cs
- WsiProfilesElementCollection.cs
- XmlSchema.cs
- DataMemberAttribute.cs
- GPPOINT.cs
- UnSafeCharBuffer.cs
- TimelineGroup.cs
- ItemContainerGenerator.cs
- InvariantComparer.cs
- PageContentCollection.cs
- ConcurrentStack.cs
- LoaderAllocator.cs
- NativeRecognizer.cs
- DataGridViewColumnCollection.cs
- ProgressPage.cs
- PermissionToken.cs
- MiniMapControl.xaml.cs
- RequiredAttributeAttribute.cs
- ErrorHandler.cs
- DragAssistanceManager.cs
- XsdBuilder.cs
- PageAdapter.cs
- PerformanceCounterTraceRecord.cs
- InputGestureCollection.cs
- SimpleLine.cs
- FixedHighlight.cs
- WsdlBuildProvider.cs