pub struct Metadata { /* private fields */ }Expand description
Parsed entity metadata (the base shared by SP and IdP).
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn parse_with_limits(
xml: &str,
extra: Vec<ExtractorField>,
limits: XmlLimits,
) -> Result<Self, SamlError>
pub fn parse_with_limits( xml: &str, extra: Vec<ExtractorField>, limits: XmlLimits, ) -> Result<Self, SamlError>
Sourcepub fn get_metadata(&self) -> &str
pub fn get_metadata(&self) -> &str
The original metadata XML.
Sourcepub fn get_entity_id(&self) -> Option<&str>
pub fn get_entity_id(&self) -> Option<&str>
entityID.
Sourcepub fn get_name_id_format(&self) -> Vec<String>
pub fn get_name_id_format(&self) -> Vec<String>
Declared <NameIDFormat> values.
Sourcepub fn x509_certificates(&self, use_: CertUse) -> Vec<String>
pub fn x509_certificates(&self, use_: CertUse) -> Vec<String>
All X.509 certificates declared for use (raw, as written in metadata).
Sourcepub fn get_x509_certificate(&self, use_: CertUse) -> Option<String>
pub fn get_x509_certificate(&self, use_: CertUse) -> Option<String>
First X.509 certificate declared for use.
Sourcepub fn get_single_logout_service(&self, binding: Binding) -> Option<String>
pub fn get_single_logout_service(&self, binding: Binding) -> Option<String>
SingleLogoutService location for binding.
Sourcepub fn get_support_bindings(&self) -> Vec<Binding>
pub fn get_support_bindings(&self) -> Vec<Binding>
Bindings for which a SingleLogoutService endpoint is declared.
Sourcepub fn verify_signature_with_limits(
&self,
trusted_certificates: &[String],
limits: XmlLimits,
) -> Result<bool, SamlError>
pub fn verify_signature_with_limits( &self, trusted_certificates: &[String], limits: XmlLimits, ) -> Result<bool, SamlError>
Sourcepub fn verify_signature_detailed(
&self,
trusted_certificates: &[String],
) -> Result<MetadataSignatureVerification, SamlError>
pub fn verify_signature_detailed( &self, trusted_certificates: &[String], ) -> Result<MetadataSignatureVerification, SamlError>
Sourcepub fn verify_signature_detailed_with_limits(
&self,
trusted_certificates: &[String],
limits: XmlLimits,
) -> Result<MetadataSignatureVerification, SamlError>
pub fn verify_signature_detailed_with_limits( &self, trusted_certificates: &[String], limits: XmlLimits, ) -> Result<MetadataSignatureVerification, SamlError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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