Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / MembershipAdapter.cs / 1305376 / MembershipAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Security { using System; using System.Web.Configuration; // NOTE: This type exists solely for System.Web.ApplicationServices.dll which creates and calls // it dynamically using Reflection. DO NOT rename, or change the namespace of this class without // updating the associated code in ndp\fx\src\xsp\System\AppServices\Util\SystemWebProxy.cs. internal class MembershipAdapter : IMembershipAdapter { public MembershipAdapter() { } public MembershipProviderCollection Providers { get { return Membership.Providers; } } public int UserIsOnlineTimeWindow { get { return Membership.UserIsOnlineTimeWindow; } } public bool IsDecryptionKeyAutogenerated { get { return MachineKeySection.IsDecryptionKeyAutogenerated; } } public bool UsingCustomEncryption { get { return MachineKeySection.UsingCustomEncryption; } } public byte[] EncryptOrDecryptData(bool encrypt, byte[] buffer, bool useLegacyMode) { // DevDiv Bugs 137864: Use IVType.None for compatibility with stored passwords even after SP20 compat mode enabled. // This is the ONLY case IVType.None should be used. return MachineKeySection.EncryptOrDecryptData(encrypt, buffer, (byte[])null, 0, buffer.Length, false /* useValidationSymAlgo */, useLegacyMode, IVType.None); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Security { using System; using System.Web.Configuration; // NOTE: This type exists solely for System.Web.ApplicationServices.dll which creates and calls // it dynamically using Reflection. DO NOT rename, or change the namespace of this class without // updating the associated code in ndp\fx\src\xsp\System\AppServices\Util\SystemWebProxy.cs. internal class MembershipAdapter : IMembershipAdapter { public MembershipAdapter() { } public MembershipProviderCollection Providers { get { return Membership.Providers; } } public int UserIsOnlineTimeWindow { get { return Membership.UserIsOnlineTimeWindow; } } public bool IsDecryptionKeyAutogenerated { get { return MachineKeySection.IsDecryptionKeyAutogenerated; } } public bool UsingCustomEncryption { get { return MachineKeySection.UsingCustomEncryption; } } public byte[] EncryptOrDecryptData(bool encrypt, byte[] buffer, bool useLegacyMode) { // DevDiv Bugs 137864: Use IVType.None for compatibility with stored passwords even after SP20 compat mode enabled. // This is the ONLY case IVType.None should be used. return MachineKeySection.EncryptOrDecryptData(encrypt, buffer, (byte[])null, 0, buffer.Length, false /* useValidationSymAlgo */, useLegacyMode, IVType.None); } } } // 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
- ControlPropertyNameConverter.cs
- StatusBarItem.cs
- XmlBinaryReaderSession.cs
- ToolStripSystemRenderer.cs
- PlanCompiler.cs
- AutoResetEvent.cs
- MSAAEventDispatcher.cs
- RemoteWebConfigurationHostServer.cs
- MachineSettingsSection.cs
- XmlSerializerNamespaces.cs
- XmlHierarchicalDataSourceView.cs
- EmptyWorkItem.cs
- ExtensionSimplifierMarkupObject.cs
- StringConcat.cs
- WebPartRestoreVerb.cs
- InvalidProgramException.cs
- Authorization.cs
- MarkupExtensionReturnTypeAttribute.cs
- SelectorItemAutomationPeer.cs
- TTSEngineProxy.cs
- CultureSpecificStringDictionary.cs
- InternalBase.cs
- OracleDateTime.cs
- ImageClickEventArgs.cs
- Utils.cs
- ControlParameter.cs
- diagnosticsswitches.cs
- XmlBinaryReader.cs
- SchemaNotation.cs
- Message.cs
- DataChangedEventManager.cs
- PieceNameHelper.cs
- OuterGlowBitmapEffect.cs
- EventLogSession.cs
- RequiredFieldValidator.cs
- PersianCalendar.cs
- FormsAuthenticationConfiguration.cs
- HtmlTableRowCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- FlowDocument.cs
- DesignerOptionService.cs
- GetParentChain.cs
- SourceChangedEventArgs.cs
- DateTimeFormatInfo.cs
- InkCanvasAutomationPeer.cs
- CompiledAction.cs
- SqlDelegatedTransaction.cs
- Emitter.cs
- CompilerState.cs
- CompilerHelpers.cs
- ButtonField.cs
- WebPart.cs
- WebPartChrome.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SymbolType.cs
- Reference.cs
- BookmarkScopeInfo.cs
- StandardToolWindows.cs
- Button.cs
- MonikerProxyAttribute.cs
- MemberRestriction.cs
- ListCollectionView.cs
- ParseHttpDate.cs
- RuleAction.cs
- CacheEntry.cs
- JpegBitmapDecoder.cs
- MLangCodePageEncoding.cs
- connectionpool.cs
- Resources.Designer.cs
- BlurBitmapEffect.cs
- ChtmlTextBoxAdapter.cs
- SrgsNameValueTag.cs
- PropertyChangedEventArgs.cs
- _FixedSizeReader.cs
- GrammarBuilderWildcard.cs
- _ChunkParse.cs
- UpdateProgress.cs
- QueryableDataSource.cs
- GridViewDesigner.cs
- PrefixQName.cs
- Synchronization.cs
- DynamicQueryStringParameter.cs
- GridSplitterAutomationPeer.cs
- ControlType.cs
- DefaultShape.cs
- CssClassPropertyAttribute.cs
- SpotLight.cs
- LinqDataSourceValidationException.cs
- TypeGenericEnumerableViewSchema.cs
- EditingMode.cs
- ToolTip.cs
- Viewport2DVisual3D.cs
- LineGeometry.cs
- LinkButton.cs
- PropertyEmitterBase.cs
- HiddenFieldPageStatePersister.cs
- SliderAutomationPeer.cs
- XmlSchemaSimpleTypeUnion.cs
- DriveNotFoundException.cs
- DataPager.cs