[−][src]Struct libgssapi::context::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]
fn wrap(&self, encrypt: bool, msg: &[u8]) -> Result<Buf, Error>
[src]
fn wrap_iov(&self, encrypt: bool, msg: &mut [GssIov]) -> Result<(), Error>
[src]
fn wrap_iov_length(
&self,
encrypt: bool,
msg: &mut [GssIovFake]
) -> Result<(), Error>
[src]
&self,
encrypt: bool,
msg: &mut [GssIovFake]
) -> Result<(), Error>
fn unwrap(&self, msg: &[u8]) -> Result<Buf, Error>
[src]
fn unwrap_iov(&self, msg: &mut [GssIov]) -> Result<(), Error>
[src]
fn info(&self) -> Result<CtxInfo, Error>
[src]
fn source_name(&self) -> Result<Name, Error>
[src]
fn target_name(&self) -> Result<Name, Error>
[src]
fn lifetime(&self) -> Result<Duration, Error>
[src]
fn mechanism(&self) -> Result<&'static Oid, Error>
[src]
fn flags(&self) -> Result<CtxFlags, Error>
[src]
fn local(&self) -> Result<bool, Error>
[src]
fn open(&self) -> Result<bool, Error>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,