pub struct AuthnSession { /* private fields */ }Expand description
Session data from one AuthnStatement.
Each value preserves the statement’s SessionIndex, AuthnInstant, and
SessionNotOnOrAfter as one tuple. Assertions with repeated statements are
represented by multiple values in document order through
crate::SsoSession::authn_sessions.
Implementations§
Source§impl AuthnSession
impl AuthnSession
Sourcepub fn new(
session_index: Option<SessionIndex>,
authn_instant: Option<SamlInstant>,
not_on_or_after: Option<SamlInstant>,
) -> Self
pub fn new( session_index: Option<SessionIndex>, authn_instant: Option<SamlInstant>, not_on_or_after: Option<SamlInstant>, ) -> Self
Create session data.
Sourcepub fn session_index(&self) -> Option<&SessionIndex>
pub fn session_index(&self) -> Option<&SessionIndex>
SessionIndex, when present.
Sourcepub fn authn_instant(&self) -> Option<&SamlInstant>
pub fn authn_instant(&self) -> Option<&SamlInstant>
AuthnInstant, when present.
Sourcepub fn not_on_or_after(&self) -> Option<&SamlInstant>
pub fn not_on_or_after(&self) -> Option<&SamlInstant>
SessionNotOnOrAfter, when present.
Trait Implementations§
Source§impl Clone for AuthnSession
impl Clone for AuthnSession
Source§fn clone(&self) -> AuthnSession
fn clone(&self) -> AuthnSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthnSession
impl Debug for AuthnSession
impl Eq for AuthnSession
Source§impl PartialEq for AuthnSession
impl PartialEq for AuthnSession
impl StructuralPartialEq for AuthnSession
Auto Trait Implementations§
impl Freeze for AuthnSession
impl RefUnwindSafe for AuthnSession
impl Send for AuthnSession
impl Sync for AuthnSession
impl Unpin for AuthnSession
impl UnsafeUnpin for AuthnSession
impl UnwindSafe for AuthnSession
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
Mutably borrows from an owned value. Read more