saml-rs 0.3.0

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

use crate::error::SamlError;

/// Pluggable XML signature/encryption backend.
///
/// Implemented by `BergshamraBackend` behind the `crypto-bergshamra` feature.
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>;
}