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
- BoundField.cs
- LoginUtil.cs
- MenuRendererClassic.cs
- SemanticResultKey.cs
- TextEncodedRawTextWriter.cs
- XmlQueryType.cs
- ApplicationActivator.cs
- ExpandableObjectConverter.cs
- XPathScanner.cs
- PageParser.cs
- ProviderUtil.cs
- ObjectAnimationBase.cs
- CryptoProvider.cs
- EmptyReadOnlyDictionaryInternal.cs
- HwndSource.cs
- GraphicsContainer.cs
- EntityClassGenerator.cs
- SortedDictionary.cs
- TrustLevel.cs
- NotSupportedException.cs
- basevalidator.cs
- SQLInt64Storage.cs
- OdbcException.cs
- WebPartVerbsEventArgs.cs
- ModifierKeysValueSerializer.cs
- RuleSetDialog.Designer.cs
- PolyQuadraticBezierSegment.cs
- EnumConverter.cs
- SpellerError.cs
- AsyncCompletedEventArgs.cs
- NetNamedPipeBindingCollectionElement.cs
- BufferedGraphicsContext.cs
- XmlSchemaSimpleContent.cs
- CodeDirectoryCompiler.cs
- HierarchicalDataBoundControlAdapter.cs
- ellipse.cs
- XmlSchemaInfo.cs
- HtmlFormParameterWriter.cs
- TypeDelegator.cs
- Enum.cs
- Expander.cs
- RegexEditorDialog.cs
- AutomationTextAttribute.cs
- PatternMatchRules.cs
- HttpMethodAttribute.cs
- PeerCollaborationPermission.cs
- ContentWrapperAttribute.cs
- MaskInputRejectedEventArgs.cs
- Stackframe.cs
- IriParsingElement.cs
- XPathDocumentNavigator.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataServiceRequestException.cs
- GridViewRowEventArgs.cs
- MasterPage.cs
- RequestCachePolicy.cs
- ThreadNeutralSemaphore.cs
- LazyTextWriterCreator.cs
- ObjectDataSourceMethodEventArgs.cs
- FixedPageStructure.cs
- WebServiceFaultDesigner.cs
- CodeGenerationManager.cs
- PrintPreviewGraphics.cs
- EpmCustomContentDeSerializer.cs
- SoapCodeExporter.cs
- ForceCopyBuildProvider.cs
- ObjectNotFoundException.cs
- XmlQueryType.cs
- AsymmetricSignatureFormatter.cs
- WinEventWrap.cs
- TypeRestriction.cs
- DbConnectionPoolCounters.cs
- ControlIdConverter.cs
- PropertyValueChangedEvent.cs
- WebPartExportVerb.cs
- ListViewAutomationPeer.cs
- Utility.cs
- CaseInsensitiveHashCodeProvider.cs
- BitConverter.cs
- IItemProperties.cs
- SimpleBitVector32.cs
- InvalidFilterCriteriaException.cs
- CodeEventReferenceExpression.cs
- AttachmentCollection.cs
- PropertyValueChangedEvent.cs
- XmlRawWriter.cs
- RefreshPropertiesAttribute.cs
- TCEAdapterGenerator.cs
- Brush.cs
- SubclassTypeValidatorAttribute.cs
- WebDescriptionAttribute.cs
- ReferencedType.cs
- HttpListener.cs
- SignatureHelper.cs
- versioninfo.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BasicHttpBindingElement.cs
- GeometryHitTestParameters.cs
- XmlILStorageConverter.cs
- XmlValueConverter.cs