sharedKey (security) Element
Applies to: desktop apps only
The sharedKey (security) element contains shared key information. This element is only required if WEP or PSK keys are required for the authentication and encryption pair.
<xs:element name="sharedKey"
minOccurs="0"
>
<xs:complexType>
<xs:sequence>
<xs:element name="keyType">
<xs:simpleType>
<xs:restriction
base="string"
>
<xs:enumeration
value="networkKey"
/>
<xs:enumeration
value="passPhrase"
/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="protected"
type="boolean"
/>
<xs:element name="keyMaterial"
type="string"
/>
<xs:any
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"
namespace="##other"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
The element is defined by the security element.
Child elements
| Element | Type | Description |
|---|---|---|
| keyMaterial | string |
Contains the network key or passphrase. |
| keyType |
Type of key. | |
| protected | boolean |
Indicates whether the key is encrypted.
|
Remarks
For Windows Vista and Windows Server 2008, the data associated with the sharedKey element is encrypted before it is saved in the profile store.
For Windows XP with SP3 and Wireless LAN API for Windows XP with SP2, the data is not encrypted.
Examples
To view sample profiles that use the sharedKey element, see Non-Broadcast Profile Sample, WPA-Personal Profile Sample, and WPA2-Personal Profile Sample.
Requirements
|
Minimum supported client | Windows Vista, Windows XP with SP3 |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Redistributable | Wireless LAN API for Windows XP with SP2 |
See also
- Definition context of element in schema
- security
- Possible immediate parent element in schema instance
- security (MSM)
Send comments about this topic to Microsoft
Build date: 2/3/2012