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
- XmlAttributeAttribute.cs
- COAUTHINFO.cs
- TimersDescriptionAttribute.cs
- RectKeyFrameCollection.cs
- FontResourceCache.cs
- BlockUIContainer.cs
- IntegerFacetDescriptionElement.cs
- DataGridComponentEditor.cs
- ReflectionTypeLoadException.cs
- base64Transforms.cs
- KeyProperty.cs
- SelectorItemAutomationPeer.cs
- ProxyWebPartManager.cs
- InvalidMessageContractException.cs
- CompatibleComparer.cs
- ActionFrame.cs
- FilteredSchemaElementLookUpTable.cs
- ListViewInsertionMark.cs
- MappingException.cs
- RadialGradientBrush.cs
- SmiConnection.cs
- SystemPens.cs
- LongValidatorAttribute.cs
- SqlRemoveConstantOrderBy.cs
- BoolExpressionVisitors.cs
- IISMapPath.cs
- VisualProxy.cs
- QuaternionAnimation.cs
- NavigationFailedEventArgs.cs
- XPathNodeIterator.cs
- CapabilitiesUse.cs
- ProcessHostMapPath.cs
- DbConnectionPoolGroupProviderInfo.cs
- FontCacheLogic.cs
- ControlValuePropertyAttribute.cs
- ColumnCollection.cs
- WindowsGraphicsWrapper.cs
- BrowsableAttribute.cs
- Qualifier.cs
- DefaultPropertyAttribute.cs
- AxisAngleRotation3D.cs
- OdbcEnvironment.cs
- RuntimeIdentifierPropertyAttribute.cs
- TransformationRules.cs
- PersistenceTypeAttribute.cs
- ExceptionHandlersDesigner.cs
- GroupItemAutomationPeer.cs
- TagPrefixCollection.cs
- TreeNodeConverter.cs
- ComNativeDescriptor.cs
- DataGridViewColumnCollectionDialog.cs
- MouseGesture.cs
- WebPartAuthorizationEventArgs.cs
- HostExecutionContextManager.cs
- PointHitTestParameters.cs
- ResizeGrip.cs
- ProxyAttribute.cs
- SafeNativeMemoryHandle.cs
- XMLSchema.cs
- LayoutTableCell.cs
- AuditLevel.cs
- EventlogProvider.cs
- MetaModel.cs
- HttpApplicationFactory.cs
- ControlPropertyNameConverter.cs
- ShaderEffect.cs
- TdsParserHelperClasses.cs
- TextBoxRenderer.cs
- ArglessEventHandlerProxy.cs
- DesignerActionService.cs
- NewExpression.cs
- PolicyImporterElement.cs
- BindToObject.cs
- WindowsListBox.cs
- JsonReader.cs
- FixedSOMElement.cs
- ProxyWebPartManager.cs
- Timer.cs
- Message.cs
- Point.cs
- PieceNameHelper.cs
- Throw.cs
- ToolStripContainer.cs
- SqlCommand.cs
- SystemColors.cs
- TargetException.cs
- BamlResourceContent.cs
- TableRowCollection.cs
- FolderNameEditor.cs
- EarlyBoundInfo.cs
- AuthenticationModuleElement.cs
- PropertyDescriptor.cs
- DrawingImage.cs
- ToolStripDropTargetManager.cs
- Attributes.cs
- SerialPort.cs
- XmlAnyElementAttribute.cs
- ParallelRangeManager.cs
- ToolStripHighContrastRenderer.cs
- Help.cs