sharedKey (security) Element

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

ElementTypeDescription
keyMaterial string

Contains the network key or passphrase.

keyType

Type of key.

protected boolean

Indicates whether the key is encrypted.

Windows XP with SP3 and Wireless LAN API for Windows XP with SP2:  This element must have a value of FALSE.

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

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)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft