GetPresharedKeyForId

The GetPresharedKeyForId method reports whether the Internet key exchange (IKE) identification payload for a particular initiator identifier (ID is configured to use a preshared key.

When an initiator uses a preshared key in a key exchange, it associates the key with an identifier for the initiator and passes the identifier and its associated key to the target in the data portion of an identification packet (also known as the identification payload). The initiator passes the identifier and its associated key during phase 1 of an aggressive or main-mode IKE, as described in RFC 2407. La charge utile d’identification permet à la cible d’identifier l’initiateur d’une manière sécurisée et de choisir une stratégie de sécurité appropriée pour une connexion avec cet initiateur particulier.

Toutefois, toutes les négociations d’authentification n’utilisent pas de clés prépartagées. The GetPresharedKeyForId method allows a user-mode service or management application to determine if the IKE identification payload for a particular identifier is configured with a preshared key.

Cette méthode WMI appartient à la classe WMI non publiée MSiSCSI_SecurityConfigOperations. For a description of the parameters of the GetPresharedKeyForId method, see the member descriptions for the GetPresharedKeyForId_IN and GetPresharedKeyForId_OUT structures.