<passwordProvider> Element (WSE for Microsoft .NET)
This element is now obsolete please refer to <binarySecurityTokenManager> Element and <securityTokenManager> Element.
When a Web application receives a SOAP request and the Web.config contains this element, a SOAP fault is returned to the SOAP message sender.
In WSE 1.0, this element specifies a user-defined class implementing the IPasswordProvider interface that retrieves the password for a user name when WSE receives a SOAP message containing a UsernameToken.
<microsoft.web.services2> Element
<security> Element
<passwordProvider
type="Class implementing IPasswordProvider" />
Attributes and Elements
Attributes
Attribute | Description |
---|---|
Type |
Required attribute. The type that retrieves the password or password equivalent for a user name received in a UsernameToken by WSE. |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Controls the configuration options defined by WSE. |
Remarks
Before adding the <passwordProvider> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).
To send and receive SOAP messages signed using a user name and password, known as a UsernameToken, see How to: Sign a SOAP Message by Using a User Name and Password and How to: Verify Digital Signatures of SOAP Messages Signed Using a User Name and Password.