pub enum BareCredentials {
WepKey(WepKey),
WpaPassphrase(Passphrase),
WpaPsk(Psk),
}
Expand description
General credential data that is not explicitly coupled to a particular security protocol.
The variants of this enumeration are particular to general protocols (i.e., WEP and WPA), but don’t provide any more details or validation. For WPA credential data, this means that the version of the WPA security protocol is entirely unknown.
This type is meant for code and APIs that accept such bare credentials and must incorporate additional information or apply heuristics to negotiate a specific protocol. For example, this occurs in code that communicates directly with SME without support from the Policy layer to derive this information.
The FIDL analogue of this type is fuchsia.wlan.common.security.Credentials
, into and from
which this type can be infallibly converted.
Variants§
WepKey(WepKey)
WEP key.
WpaPassphrase(Passphrase)
WPA passphrase.
Passphrases can be used to authenticate with WPA1, WPA2, and WPA3.
WpaPsk(Psk)
WPA PSK.
PSKs are distinct from passphrases and can be used to authenticate with WPA1 and WPA2. A PSK cannot be used to authenticate with WPA3.
Trait Implementations§
Source§impl Clone for BareCredentials
impl Clone for BareCredentials
Source§fn clone(&self) -> BareCredentials
fn clone(&self) -> BareCredentials
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BareCredentials
impl Debug for BareCredentials
Source§impl From<Authentication<PersonalCredentials, EnterpriseCredentials>> for BareCredentials
Conversion of general WPA credentials into bare credentials.
impl From<Authentication<PersonalCredentials, EnterpriseCredentials>> for BareCredentials
Conversion of general WPA credentials into bare credentials.
Source§fn from(credentials: Credentials) -> Self
fn from(credentials: Credentials) -> Self
Source§impl From<BareCredentials> for Credentials
impl From<BareCredentials> for Credentials
Source§fn from(credentials: BareCredentials) -> Self
fn from(credentials: BareCredentials) -> Self
Source§impl From<Passphrase> for BareCredentials
Conversion from a WPA passphrase into bare credentials.
impl From<Passphrase> for BareCredentials
Conversion from a WPA passphrase into bare credentials.
Source§fn from(passphrase: Passphrase) -> Self
fn from(passphrase: Passphrase) -> Self
Source§impl From<Psk> for BareCredentials
Conversion from a WPA PSK into bare credentials.
impl From<Psk> for BareCredentials
Conversion from a WPA PSK into bare credentials.
Source§impl From<WepKey> for BareCredentials
Conversion from a WEP key into bare credentials.
impl From<WepKey> for BareCredentials
Conversion from a WEP key into bare credentials.