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
- CalloutQueueItem.cs
- UnsafePeerToPeerMethods.cs
- XPathSelectionIterator.cs
- CommunicationException.cs
- WebPartConnectionsCloseVerb.cs
- BidOverLoads.cs
- Internal.cs
- SQLBinaryStorage.cs
- ContentType.cs
- EnumerableCollectionView.cs
- TypeUtils.cs
- GridViewColumn.cs
- KeyFrames.cs
- NameValueConfigurationElement.cs
- MsmqBindingElementBase.cs
- CodeStatementCollection.cs
- StateRuntime.cs
- HttpPostServerProtocol.cs
- SessionStateSection.cs
- SR.cs
- FixedStringLookup.cs
- DesignerActionKeyboardBehavior.cs
- MonthCalendarDesigner.cs
- hresults.cs
- NetworkCredential.cs
- GeometryCombineModeValidation.cs
- XmlDataSourceNodeDescriptor.cs
- WebHttpBehavior.cs
- SoapAttributeOverrides.cs
- SqlTrackingService.cs
- CodeSnippetTypeMember.cs
- ParenthesizePropertyNameAttribute.cs
- WebBrowser.cs
- ButtonColumn.cs
- PartitionResolver.cs
- Activator.cs
- LookupBindingPropertiesAttribute.cs
- UIElementParagraph.cs
- StylusPointProperties.cs
- PolyBezierSegment.cs
- PropertyPushdownHelper.cs
- ApplyTemplatesAction.cs
- MimeReturn.cs
- ProfileEventArgs.cs
- DataBinding.cs
- _NativeSSPI.cs
- DomNameTable.cs
- Constraint.cs
- CharKeyFrameCollection.cs
- ConfigXmlAttribute.cs
- ScriptingWebServicesSectionGroup.cs
- PasswordRecovery.cs
- PathGradientBrush.cs
- SqlDataSource.cs
- XmlILAnnotation.cs
- SmiMetaData.cs
- DataServiceQueryContinuation.cs
- LabelLiteral.cs
- ProcessManager.cs
- RenderContext.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- XNameTypeConverter.cs
- EntityModelSchemaGenerator.cs
- RenderCapability.cs
- LazyTextWriterCreator.cs
- DbInsertCommandTree.cs
- CodeEventReferenceExpression.cs
- DiscardableAttribute.cs
- PersistenceProviderDirectory.cs
- DBPropSet.cs
- AppearanceEditorPart.cs
- PageParser.cs
- CodeGeneratorOptions.cs
- SwitchLevelAttribute.cs
- SqlFactory.cs
- EventToken.cs
- SerialReceived.cs
- DataServiceConfiguration.cs
- PriorityBinding.cs
- TitleStyle.cs
- BoundConstants.cs
- ClientApiGenerator.cs
- DefinitionBase.cs
- ListChunk.cs
- StreamInfo.cs
- DataSourceDescriptorCollection.cs
- ItemsControl.cs
- CngAlgorithm.cs
- XmlAttributeAttribute.cs
- RealizationDrawingContextWalker.cs
- BaseParser.cs
- OrderByQueryOptionExpression.cs
- SerTrace.cs
- NativeObjectSecurity.cs
- TextRunProperties.cs
- UpdateCommand.cs
- CanonicalizationDriver.cs
- SubclassTypeValidatorAttribute.cs
- NominalTypeEliminator.cs
- KeyConverter.cs