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
- Attributes.cs
- HelpProvider.cs
- MarkupExtensionParser.cs
- TypeUtil.cs
- NumberFormatInfo.cs
- FilterableAttribute.cs
- RecordManager.cs
- _NTAuthentication.cs
- XamlVector3DCollectionSerializer.cs
- WebPartEditorApplyVerb.cs
- ClientBuildManager.cs
- DataGridDetailsPresenter.cs
- CompiledRegexRunnerFactory.cs
- Emitter.cs
- AxisAngleRotation3D.cs
- ConfigXmlWhitespace.cs
- SqlDataSourceSelectingEventArgs.cs
- SymmetricKey.cs
- Font.cs
- ScrollProperties.cs
- DataServiceHost.cs
- GrammarBuilderBase.cs
- PathFigure.cs
- TextParentUndoUnit.cs
- shaper.cs
- OleDbFactory.cs
- ByteConverter.cs
- HttpWebResponse.cs
- ServiceOperationListItemList.cs
- XhtmlBasicPageAdapter.cs
- NullExtension.cs
- _DomainName.cs
- LinearQuaternionKeyFrame.cs
- SessionPageStateSection.cs
- ErrorHandlerModule.cs
- ScriptHandlerFactory.cs
- AttributeConverter.cs
- ConfigXmlText.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AuthenticatedStream.cs
- ProgressBar.cs
- WebControl.cs
- Queue.cs
- BCLDebug.cs
- DesignBindingPicker.cs
- SessionStateContainer.cs
- BuildManagerHost.cs
- AtomMaterializerLog.cs
- CodeParameterDeclarationExpression.cs
- StreamWithDictionary.cs
- SqlTypeSystemProvider.cs
- RuleSetDialog.Designer.cs
- BaseResourcesBuildProvider.cs
- ReaderWriterLock.cs
- PageThemeCodeDomTreeGenerator.cs
- WindowsAltTab.cs
- Matrix.cs
- ActivationWorker.cs
- PublisherIdentityPermission.cs
- NotifyInputEventArgs.cs
- XmlElementList.cs
- AsnEncodedData.cs
- activationcontext.cs
- Identifier.cs
- DataControlReference.cs
- MethodToken.cs
- StrokeRenderer.cs
- Comparer.cs
- InputLanguageProfileNotifySink.cs
- DefaultAssemblyResolver.cs
- Fx.cs
- ApplicationServicesHostFactory.cs
- AutomationElementCollection.cs
- WebPartVerbsEventArgs.cs
- GridEntry.cs
- CompilationSection.cs
- TimeoutException.cs
- HostedElements.cs
- FileUtil.cs
- ProcessThread.cs
- TimeSpanSecondsConverter.cs
- VisualStyleRenderer.cs
- UriScheme.cs
- TextEncodedRawTextWriter.cs
- _TransmitFileOverlappedAsyncResult.cs
- HtmlTableRowCollection.cs
- TextParagraph.cs
- AuthenticationModuleElement.cs
- WindowsClaimSet.cs
- Vector3DKeyFrameCollection.cs
- TextChange.cs
- DataGridViewImageColumn.cs
- ElementsClipboardData.cs
- CqlLexerHelpers.cs
- BitmapFrameDecode.cs
- TypeValidationEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- StyleSheetComponentEditor.cs
- XPathEmptyIterator.cs
- XmlSchemaRedefine.cs