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
- WindowsUpDown.cs
- TimeIntervalCollection.cs
- LongPath.cs
- XmlDataImplementation.cs
- PolicyManager.cs
- OptimizedTemplateContent.cs
- Tracking.cs
- WebServiceData.cs
- StorageMappingItemCollection.cs
- ReadingWritingEntityEventArgs.cs
- CompleteWizardStep.cs
- RIPEMD160.cs
- COM2ICategorizePropertiesHandler.cs
- PropertyToken.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewRowPrePaintEventArgs.cs
- InitializationEventAttribute.cs
- IDReferencePropertyAttribute.cs
- ActivityTypeResolver.xaml.cs
- DataExpression.cs
- SystemNetHelpers.cs
- PropertyGridEditorPart.cs
- DataColumnCollection.cs
- ParameterRefs.cs
- CultureSpecificStringDictionary.cs
- shaperfactoryquerycachekey.cs
- StateMachineSubscription.cs
- SqlUserDefinedTypeAttribute.cs
- TcpTransportBindingElement.cs
- WebEventCodes.cs
- ImageDrawing.cs
- Transform.cs
- ArcSegment.cs
- PerformanceCountersElement.cs
- ListItemViewAttribute.cs
- InProcStateClientManager.cs
- GridProviderWrapper.cs
- autovalidator.cs
- FunctionDefinition.cs
- DataColumn.cs
- FixedSOMContainer.cs
- InheritanceContextChangedEventManager.cs
- SQLDoubleStorage.cs
- BufferedOutputStream.cs
- PartialTrustVisibleAssembly.cs
- GeometryModel3D.cs
- XMLUtil.cs
- ProxyFragment.cs
- XmlKeywords.cs
- EditingCoordinator.cs
- BoundField.cs
- OleDbParameter.cs
- ProviderMetadataCachedInformation.cs
- ContainerUIElement3D.cs
- IDispatchConstantAttribute.cs
- OptimalBreakSession.cs
- WindowsFormsSectionHandler.cs
- SafeViewOfFileHandle.cs
- DataGridViewCellLinkedList.cs
- DataGridViewRowsAddedEventArgs.cs
- SqlCacheDependencySection.cs
- WebPartHelpVerb.cs
- Label.cs
- HostingPreferredMapPath.cs
- IDReferencePropertyAttribute.cs
- DataRelationPropertyDescriptor.cs
- StyleXamlParser.cs
- SQLMembershipProvider.cs
- SafeNativeMethodsMilCoreApi.cs
- FormatterConverter.cs
- SqlFileStream.cs
- Automation.cs
- DragStartedEventArgs.cs
- ExpressionEditorAttribute.cs
- SqlUdtInfo.cs
- BamlStream.cs
- CollectionBase.cs
- HostSecurityManager.cs
- InertiaRotationBehavior.cs
- TextSimpleMarkerProperties.cs
- DesignerLoader.cs
- DecimalConstantAttribute.cs
- HTMLTagNameToTypeMapper.cs
- BezierSegment.cs
- SystemGatewayIPAddressInformation.cs
- assertwrapper.cs
- WebControl.cs
- RuntimeHandles.cs
- DataServiceEntityAttribute.cs
- GradientStop.cs
- XsltLibrary.cs
- XmlArrayItemAttributes.cs
- BitVec.cs
- PagesSection.cs
- BypassElement.cs
- InlineObject.cs
- DialogWindow.cs
- Debug.cs
- OleDbPermission.cs
- RIPEMD160.cs