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
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
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
impl From<Psk> for BareCredentials
Conversion from a WPA PSK into bare credentials.
Source§impl From<WepKey> for BareCredentials
impl From<WepKey> for BareCredentials
Conversion from a WEP key into bare credentials.
Source§impl PartialEq for BareCredentials
impl PartialEq for BareCredentials
Source§impl TryFrom<Credentials> for BareCredentials
impl TryFrom<Credentials> for BareCredentials
Source§type Error = SecurityError
type Error = SecurityError
impl Eq for BareCredentials
impl StructuralPartialEq for BareCredentials
Auto Trait Implementations§
impl Freeze for BareCredentials
impl RefUnwindSafe for BareCredentials
impl Send for BareCredentials
impl Sync for BareCredentials
impl Unpin for BareCredentials
impl UnwindSafe for BareCredentials
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)