use crate::{Result, SigningError};
pub struct TrustStore {
_private: (),
}
impl TrustStore {
#[must_use]
pub const fn builder() -> TrustStoreBuilder {
TrustStoreBuilder::new()
}
pub fn system() -> Result<Self> {
Err(SigningError::RequiresLicense.into())
}
}
#[derive(Default)]
pub struct TrustStoreBuilder {
_private: (),
}
impl TrustStoreBuilder {
#[must_use]
pub const fn new() -> Self {
Self { _private: () }
}
#[must_use]
pub const fn with_system_roots(self) -> Self {
self
}
pub fn with_pem_file(self, _path: impl AsRef<std::path::Path>) -> Result<Self> {
Err(SigningError::RequiresLicense.into())
}
pub fn with_pem_data(self, _data: &[u8]) -> Result<Self> {
Err(SigningError::RequiresLicense.into())
}
pub fn build(self) -> Result<TrustStore> {
Err(SigningError::RequiresLicense.into())
}
}