wlan_common::security::wpa

Type Alias WpaAuthenticator

Source
pub type WpaAuthenticator = Wpa<AuthenticatorData>;
Expand description

WPA authenticator.

Provides credentials for authenticating against the described configuration of the WPA security protocol.

Aliased Type§

enum WpaAuthenticator {
    Wpa1 {
        credentials: Wpa1Credentials,
    },
    Wpa2 {
        cipher: Option<Wpa2Cipher>,
        authentication: Authentication<Wpa2PersonalCredentials>,
    },
    Wpa3 {
        cipher: Option<Wpa3Cipher>,
        authentication: Authentication<Wpa3PersonalCredentials>,
    },
}

Variants§

§

Wpa1

Fields

§credentials: Wpa1Credentials
§

Wpa2

§

Wpa3

Implementations§

Source§

impl WpaAuthenticator

Source

pub fn into_credentials(self) -> Credentials

Converts a WPA authenticator into its credentials.

The output of this function is general and describes all versions of WPA. This means it cannot be used to determine which version of WPA has been specified. Note that WPA1 specifies its credentials as WPA1 Personal via Authentication::Personal even though WPA1 has no Enterprise suite.

Source

pub fn to_credentials(&self) -> Credentials