opensaml 0.1.3

SAML 2.0 Service Provider library (bergshamra for XML crypto).
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! XML security backend trait.

use crate::error::OpenSamlError;

/// 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<(), OpenSamlError>;
}