pub struct SloEndpoint { /* private fields */ }Expand description
Single Logout service endpoint.
Implementations§
Source§impl SloEndpoint
impl SloEndpoint
Sourcepub fn new(binding: LogoutBinding, url: EndpointUrl) -> SloEndpoint
pub fn new(binding: LogoutBinding, url: EndpointUrl) -> SloEndpoint
Create an SLO endpoint from an already validated URL.
Sourcepub fn redirect(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
pub fn redirect(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
Create an HTTP-Redirect SLO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn post(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
pub fn post(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
Create an HTTP-POST SLO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn simple_sign(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
pub fn simple_sign(url: impl Into<String>) -> Result<SloEndpoint, SamlError>
Create an HTTP-POST-SimpleSign SLO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn try_from_raw(endpoint: Endpoint) -> Result<SloEndpoint, SamlError>
pub fn try_from_raw(endpoint: Endpoint) -> Result<SloEndpoint, SamlError>
Narrow a raw metadata endpoint into an SLO endpoint.
§Errors
Returns SamlError if the raw binding is not valid for logout or if
the endpoint location fails EndpointUrl::try_new validation.
Sourcepub fn binding(&self) -> LogoutBinding
pub fn binding(&self) -> LogoutBinding
Endpoint binding.
Sourcepub fn location(&self) -> &EndpointUrl
pub fn location(&self) -> &EndpointUrl
Metadata endpoint location.
Trait Implementations§
Source§impl Clone for SloEndpoint
impl Clone for SloEndpoint
Source§fn clone(&self) -> SloEndpoint
fn clone(&self) -> SloEndpoint
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 SloEndpoint
impl Debug for SloEndpoint
impl Eq for SloEndpoint
Source§impl PartialEq for SloEndpoint
impl PartialEq for SloEndpoint
impl StructuralPartialEq for SloEndpoint
Auto Trait Implementations§
impl Freeze for SloEndpoint
impl RefUnwindSafe for SloEndpoint
impl Send for SloEndpoint
impl Sync for SloEndpoint
impl Unpin for SloEndpoint
impl UnsafeUnpin for SloEndpoint
impl UnwindSafe for SloEndpoint
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