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
- TextOutput.cs
- RadioButton.cs
- _NTAuthentication.cs
- Point3DConverter.cs
- Point4DConverter.cs
- GC.cs
- DES.cs
- Pen.cs
- DataPagerFieldCollection.cs
- Operator.cs
- CompiledIdentityConstraint.cs
- CodeAttributeArgumentCollection.cs
- DescendentsWalkerBase.cs
- FileCodeGroup.cs
- Int32RectConverter.cs
- VirtualDirectoryMappingCollection.cs
- TaskCanceledException.cs
- XmlDataSourceNodeDescriptor.cs
- PagesChangedEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- BindingGroup.cs
- ConstructorNeedsTagAttribute.cs
- LayoutEngine.cs
- OdbcException.cs
- MouseButton.cs
- BulletedListDesigner.cs
- ObjectContextServiceProvider.cs
- SiteMapSection.cs
- WebPartDisplayModeCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TextTreeText.cs
- DetailsView.cs
- DockAndAnchorLayout.cs
- AsymmetricSignatureFormatter.cs
- FillRuleValidation.cs
- HostedElements.cs
- MatrixAnimationUsingPath.cs
- HtmlForm.cs
- AnnotationComponentChooser.cs
- GeneralTransformCollection.cs
- UndoManager.cs
- CfgParser.cs
- DrawToolTipEventArgs.cs
- CommandSet.cs
- DataGridViewBand.cs
- OleDbPermission.cs
- FieldBuilder.cs
- ConfigXmlWhitespace.cs
- FlowDocumentPaginator.cs
- ExternalFile.cs
- StackOverflowException.cs
- metadatamappinghashervisitor.cs
- ScrollProviderWrapper.cs
- TripleDESCryptoServiceProvider.cs
- SocketManager.cs
- ExpressionPrinter.cs
- smtppermission.cs
- ViewCellSlot.cs
- AssociationTypeEmitter.cs
- MetadataCache.cs
- SqlMethodTransformer.cs
- AsyncMethodInvoker.cs
- AsyncStreamReader.cs
- ErasingStroke.cs
- CorrelationInitializer.cs
- KeyedHashAlgorithm.cs
- PlainXmlSerializer.cs
- BasicBrowserDialog.designer.cs
- AnimationStorage.cs
- TableDetailsRow.cs
- EntitySetDataBindingList.cs
- ProfileManager.cs
- ListViewUpdatedEventArgs.cs
- ProviderMetadataCachedInformation.cs
- LongTypeConverter.cs
- TextServicesCompartment.cs
- InstanceView.cs
- ContentType.cs
- MailAddressCollection.cs
- FeatureSupport.cs
- StorageSetMapping.cs
- FormClosingEvent.cs
- TemplateBindingExtension.cs
- MobileUserControlDesigner.cs
- TypeExtensionConverter.cs
- Point.cs
- FormViewCommandEventArgs.cs
- StrongNameMembershipCondition.cs
- TagPrefixInfo.cs
- FunctionImportElement.cs
- CodeTypeParameterCollection.cs
- Inflater.cs
- GlobalizationSection.cs
- XmlSchemaType.cs
- FormViewCommandEventArgs.cs
- AvTraceDetails.cs
- DataListDesigner.cs
- FixedStringLookup.cs
- CheckoutException.cs
- DataGridRelationshipRow.cs