[−][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.
Implementations
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]
pub fn wrap(&self, encrypt: bool, msg: &[u8]) -> Result<Buf, Error>
[src]
pub fn wrap_iov(
&self,
encrypt: bool,
msg: &mut [GssIov<'_>]
) -> Result<(), Error>
[src]
&self,
encrypt: bool,
msg: &mut [GssIov<'_>]
) -> Result<(), Error>
pub fn wrap_iov_length(
&self,
encrypt: bool,
msg: &mut [GssIovFake]
) -> Result<(), Error>
[src]
&self,
encrypt: bool,
msg: &mut [GssIovFake]
) -> Result<(), Error>
pub fn unwrap(&self, msg: &[u8]) -> Result<Buf, Error>
[src]
pub fn unwrap_iov(&self, msg: &mut [GssIov<'_>]) -> Result<(), Error>
[src]
pub fn info(&self) -> Result<CtxInfo, Error>
[src]
pub fn source_name(&self) -> Result<Name, Error>
[src]
pub fn target_name(&self) -> Result<Name, Error>
[src]
pub fn lifetime(&self) -> Result<Duration, Error>
[src]
pub fn mechanism(&self) -> Result<&'static Oid, Error>
[src]
pub fn flags(&self) -> Result<CtxFlags, Error>
[src]
pub fn local(&self) -> Result<bool, Error>
[src]
pub fn open(&self) -> Result<bool, Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServerCtx
[src]
impl Send for ServerCtx
[src]
impl Sync for ServerCtx
[src]
impl Unpin for ServerCtx
[src]
impl !UnwindSafe for ServerCtx
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,