pub struct SamlAssertionBuilder { /* private fields */ }
Expand description
SAML Assertion Builder
Implementations§
Source§impl SamlAssertionBuilder
impl SamlAssertionBuilder
Sourcepub fn with_subject(self, subject: SamlSubject) -> Self
pub fn with_subject(self, subject: SamlSubject) -> Self
Set the subject
Sourcepub fn with_conditions(self, conditions: SamlConditions) -> Self
pub fn with_conditions(self, conditions: SamlConditions) -> Self
Set conditions
Sourcepub fn with_attribute_statement(self, statement: SamlAttributeStatement) -> Self
pub fn with_attribute_statement(self, statement: SamlAttributeStatement) -> Self
Add an attribute statement
Sourcepub fn with_authn_statement(self, statement: SamlAuthnStatement) -> Self
pub fn with_authn_statement(self, statement: SamlAuthnStatement) -> Self
Add an authentication statement
Sourcepub fn with_authz_decision_statement(
self,
statement: SamlAuthzDecisionStatement,
) -> Self
pub fn with_authz_decision_statement( self, statement: SamlAuthzDecisionStatement, ) -> Self
Add an authorization decision statement
Sourcepub fn with_attribute(self, name: &str, value: &str) -> Self
pub fn with_attribute(self, name: &str, value: &str) -> Self
Add a simple attribute
Sourcepub fn with_validity_period(
self,
not_before: DateTime<Utc>,
not_on_or_after: DateTime<Utc>,
) -> Self
pub fn with_validity_period( self, not_before: DateTime<Utc>, not_on_or_after: DateTime<Utc>, ) -> Self
Set validity period
Sourcepub fn with_audience(self, audience: &str) -> Self
pub fn with_audience(self, audience: &str) -> Self
Add audience restriction
Sourcepub fn build(self) -> SamlAssertion
pub fn build(self) -> SamlAssertion
Build the assertion
Auto Trait Implementations§
impl Freeze for SamlAssertionBuilder
impl RefUnwindSafe for SamlAssertionBuilder
impl Send for SamlAssertionBuilder
impl Sync for SamlAssertionBuilder
impl Unpin for SamlAssertionBuilder
impl UnwindSafe for SamlAssertionBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more