saml-rs 0.5.0

Pure-Rust SAML 2.0 Service Provider and Identity Provider support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! XML security backend trait.

use crate::error::SamlError;

/// Pluggable XML signature/encryption backend.
///
/// Implemented by `BergshamraBackend` when a document-crypto provider feature
/// is selected.
pub trait XmlSecurityBackend {
    /// Verify an enveloped XML-DSig signature over `xml` using `cert_pem`.
    fn verify_signature(&self, xml: &str, cert_pem: &str) -> Result<(), SamlError>;
}