Struct custodian_password::ServerLogin [−][src]
pub struct ServerLogin { /* fields omitted */ }
Expand description
Starts the login process on the server.
Implementations
Returns the Config
associated with this ServerLogin
.
Returns the PublicKey
associated with this ServerLogin
.
pub fn login(
config: &ServerConfig,
file: Option<ServerFile>,
request: LoginRequest
) -> Result<(Self, LoginResponse)>
pub fn login(
config: &ServerConfig,
file: Option<ServerFile>,
request: LoginRequest
) -> Result<(Self, LoginResponse)>
Starts the login process. The returned LoginResponse
has to
be send back to the client to drive the login process. See
ClientLogin::finish()
.
If a client is registered, pass the appropriate ServerFile
, pass
None
otherwise. Passing None
simulates a login attempt in a way
that doesn’t let an attacker determine if a corresponding client is
registered or not.
Errors
Error::Config
ifServerConfig
,ServerFile
orLoginRequest
were not created with the sameConfig
Error::ServerFile
ifServerFile
was not created with the sameServerConfig
Error::Opaque
on internal OPAQUE error
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ServerLogin
impl Send for ServerLogin
impl Sync for ServerLogin
impl Unpin for ServerLogin
impl UnwindSafe for ServerLogin
Blanket Implementations
Mutably borrows from an owned value. Read more