pub trait SecretSource {
// Required methods
fn encrypt_current(&self, data: &str) -> Result<String, RustAuthError>;
fn decrypt_payload(&self, data: &str) -> Result<String, RustAuthError>;
}Expand description
Secret material accepted by symmetric encryption helpers.
Required Methods§
fn encrypt_current(&self, data: &str) -> Result<String, RustAuthError>
fn decrypt_payload(&self, data: &str) -> Result<String, RustAuthError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".