diff --git a/reticle/src/lib.rs b/reticle/src/lib.rs index 05ba270..3bf3fe1 100644 --- a/reticle/src/lib.rs +++ b/reticle/src/lib.rs @@ -150,6 +150,12 @@ impl ClientBuilder { self } + /// sets the confidential policy provider to URL source with the specified url + pub fn with_policies_url(mut self, url: &str) -> libattest::Result { + self.policies = Box::new(UrlPolicies::new(url)?); + Ok(self) + } + pub async fn build(self) -> Result { let reqwest_client = reqwest::Client::builder() .default_headers(self.headers)