pub struct IdpDescriptor { /* private fields */ }Expand description
Typed IdP peer descriptor imported from metadata.
Implementations§
Source§impl IdpDescriptor
impl IdpDescriptor
Sourcepub fn from_metadata_xml_for(
expected_entity_id: EntityId,
xml: &str,
trust: MetadataTrustPolicy<'_>,
) -> Result<IdpDescriptor, SamlError>
pub fn from_metadata_xml_for( expected_entity_id: EntityId, xml: &str, trust: MetadataTrustPolicy<'_>, ) -> Result<IdpDescriptor, SamlError>
Sourcepub fn from_metadata_xml(
xml: &str,
trust: MetadataTrustPolicy<'_>,
) -> Result<IdpDescriptor, SamlError>
pub fn from_metadata_xml( xml: &str, trust: MetadataTrustPolicy<'_>, ) -> Result<IdpDescriptor, SamlError>
Parse IdP metadata when the caller accepts the metadata-declared entity ID.
Prefer Self::from_metadata_xml_for when the expected entity ID is known.
§Errors
Returns SamlError when the XML is malformed, the entity ID is absent,
or the requested trust policy cannot be satisfied.
Sourcepub fn metadata_xml(&self) -> &str
pub fn metadata_xml(&self) -> &str
Original metadata XML.
Sourcepub fn metadata(&self) -> &IdpMetadata
pub fn metadata(&self) -> &IdpMetadata
Parsed IdP metadata.
Sourcepub fn was_verified_with_pinned_certificates(&self) -> bool
pub fn was_verified_with_pinned_certificates(&self) -> bool
Whether this descriptor was verified with pinned signing certificates.
Sourcepub fn signed_entity_descriptor_xml(&self) -> Option<&str>
pub fn signed_entity_descriptor_xml(&self) -> Option<&str>
Signed metadata root when pinned verification passed, including a
covering <EntitiesDescriptor>.
Trait Implementations§
Source§impl Clone for IdpDescriptor
impl Clone for IdpDescriptor
Source§fn clone(&self) -> IdpDescriptor
fn clone(&self) -> IdpDescriptor
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 moreAuto Trait Implementations§
impl Freeze for IdpDescriptor
impl RefUnwindSafe for IdpDescriptor
impl Send for IdpDescriptor
impl Sync for IdpDescriptor
impl Unpin for IdpDescriptor
impl UnsafeUnpin for IdpDescriptor
impl UnwindSafe for IdpDescriptor
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