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
- StringComparer.cs
- TypeConverterHelper.cs
- RootProfilePropertySettingsCollection.cs
- RouteParser.cs
- OrderedDictionaryStateHelper.cs
- SimpleNameService.cs
- ObjectStateEntryDbDataRecord.cs
- HttpHandlerAction.cs
- CommandDevice.cs
- XmlDeclaration.cs
- ConfigurationErrorsException.cs
- XmlSerializerVersionAttribute.cs
- XmlRootAttribute.cs
- WinEventWrap.cs
- TemplateXamlTreeBuilder.cs
- CatalogPartCollection.cs
- HttpHandlersSection.cs
- DbParameterCollectionHelper.cs
- WeakHashtable.cs
- PreservationFileReader.cs
- RadioButtonPopupAdapter.cs
- SR.cs
- IMembershipProvider.cs
- RegexReplacement.cs
- TraceSwitch.cs
- TabPage.cs
- MetadataItemEmitter.cs
- DelegatingStream.cs
- GetWinFXPath.cs
- UIElement3DAutomationPeer.cs
- TextElementEnumerator.cs
- SignerInfo.cs
- StringUtil.cs
- DescendantQuery.cs
- ParameterDataSourceExpression.cs
- TextSegment.cs
- ToolStripPanelRenderEventArgs.cs
- DirectoryLocalQuery.cs
- Timer.cs
- MostlySingletonList.cs
- LongPath.cs
- TemplateControlCodeDomTreeGenerator.cs
- SearchForVirtualItemEventArgs.cs
- CodeDirectoryCompiler.cs
- XmlCollation.cs
- Rotation3DAnimation.cs
- XmlDocument.cs
- GridViewColumnHeaderAutomationPeer.cs
- GeneralTransform2DTo3DTo2D.cs
- ZipFileInfo.cs
- FileSecurity.cs
- FormsAuthenticationUser.cs
- DefaultProfileManager.cs
- HealthMonitoringSection.cs
- HelpInfo.cs
- TextStore.cs
- DataServiceException.cs
- AttachedPropertyBrowsableAttribute.cs
- ValuePatternIdentifiers.cs
- ServiceModelConfigurationSection.cs
- BuildManagerHost.cs
- DataKey.cs
- VectorValueSerializer.cs
- PaintEvent.cs
- InvalidOperationException.cs
- CallContext.cs
- BevelBitmapEffect.cs
- CorrelationManager.cs
- AbsoluteQuery.cs
- QualificationDataItem.cs
- ImageAnimator.cs
- PropertyInfoSet.cs
- NumberFormatInfo.cs
- HttpServerChannel.cs
- CustomTypeDescriptor.cs
- XmlComment.cs
- SessionStateModule.cs
- EnumMember.cs
- HttpHandlersSection.cs
- ToolStripDropDownClosedEventArgs.cs
- ContentControl.cs
- ConfigurationException.cs
- MethodToken.cs
- LoginName.cs
- SchemaImporterExtensionsSection.cs
- FunctionMappingTranslator.cs
- XmlSerializerAssemblyAttribute.cs
- JsonSerializer.cs
- TextServicesHost.cs
- TreeViewImageKeyConverter.cs
- KeyValueSerializer.cs
- ObjectDataSourceView.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- OrderToken.cs
- ComponentDispatcher.cs
- Label.cs
- QilIterator.cs
- BoundsDrawingContextWalker.cs
- HGlobalSafeHandle.cs
- ActiveXHost.cs