[][src]Struct libgssapi::context::ServerCtx

pub struct ServerCtx(_);

The server side of a security context. Contexts are wrapped in and Arc<Mutex<_>> internally, so clones work and you can use them safely from other threads.

Methods

impl ServerCtx[src]

pub fn new(cred: Cred) -> ServerCtx[src]

Create a new uninitialized server context with the specified credentials. You must then call step until the context is fully initialized. The mechanism is not specified because it is dictated by the client.

pub fn step(&self, tok: &[u8]) -> Result<Option<Buf>, Error>[src]

Perform 1 step in the initialization of the server context, feeding it a token you received from the client. If initialization is complete from the point of view of the server then this will return Ok(None). Otherwise it will return a token that needs to be sent to the client and fed to ClientCtx::step.

Trait Implementations

impl Clone for ServerCtx[src]

impl Debug for ServerCtx[src]

impl SecurityContext for ServerCtx[src]

Auto Trait Implementations

impl !RefUnwindSafe for ServerCtx

impl Send for ServerCtx

impl Sync for ServerCtx

impl Unpin for ServerCtx

impl !UnwindSafe for ServerCtx

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.