use std::time::Duration;
use serde::Deserialize;
#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))]
#[derive(Debug, Clone, Deserialize, Default)]
pub struct OAuthResourceServerJweConfig {
#[serde(default)]
pub jwe_jwks_path: Option<String>,
#[serde(default)]
pub jwe_jwk_path: Option<String>,
#[serde(default)]
pub jwe_pem_path: Option<String>,
#[serde(default)]
pub jwe_pem_key_id: Option<String>,
#[serde(default)]
pub jwe_pem_algorithm: Option<String>,
#[serde(default)]
pub jwe_pem_key_use: Option<String>,
#[serde(default, with = "humantime_serde")]
#[cfg_attr(feature = "config-schema", schemars(with = "String"))]
pub watch_interval: Duration,
}