pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn builder(base_url: impl Into<String>) -> ClientBuilder
pub fn base_url(&self) -> &str
pub fn capabilities(&self) -> Result<SdkCapabilitiesResponse, SdkError>
pub fn whoami(&self) -> Result<CallerIdentityResponse, SdkError>
pub fn bootstrap(&self) -> Result<SdkBootstrapResponse, SdkError>
pub fn protection_plan( &self, request: &SdkProtectionPlanRequest, ) -> Result<SdkProtectionPlanResponse, SdkError>
pub fn policy_resolve( &self, request: &SdkPolicyResolveRequest, ) -> Result<SdkPolicyResolveResponse, SdkError>
pub fn key_access_plan( &self, request: &SdkKeyAccessPlanRequest, ) -> Result<SdkKeyAccessPlanResponse, SdkError>
pub fn artifact_register( &self, request: &SdkArtifactRegisterRequest, ) -> Result<SdkArtifactRegisterResponse, SdkError>
pub fn evidence( &self, request: &SdkEvidenceIngestRequest, ) -> Result<SdkEvidenceIngestResponse, SdkError>
Source§impl Client
impl Client
pub fn prepare_local_protection( &self, content: &[u8], request: LocalProtectionRequest, ) -> Result<PreparedLocalProtection, SdkError>
pub fn generate_cid_binding( &self, content: &[u8], request: LocalProtectionRequest, ) -> Result<LocalArtifactBinding, SdkError>
pub fn protect_bytes_with_envelope( &self, key: &LocalSymmetricKey, plaintext: &[u8], request: LocalProtectionRequest, ) -> Result<EnvelopeProtectionResult, SdkError>
pub fn protect_bytes_with_envelope_using_key_source( &self, key_source: &LocalSymmetricKeySource, plaintext: &[u8], request: LocalProtectionRequest, ) -> Result<EnvelopeProtectionResult, SdkError>
pub fn access_bytes_with_envelope( &self, key: &LocalSymmetricKey, artifact_bytes: &[u8], ) -> Result<EnvelopeAccessResult, SdkError>
pub fn access_bytes_with_envelope_using_key_source( &self, key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], ) -> Result<EnvelopeAccessResult, SdkError>
pub fn rewrap_bytes_with_envelope( &self, current_key: &LocalSymmetricKey, new_key: &LocalSymmetricKey, artifact_bytes: &[u8], ) -> Result<EnvelopeRewrapResult, SdkError>
pub fn rewrap_bytes_with_envelope_using_key_sources( &self, current_key_source: &LocalSymmetricKeySource, new_key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], ) -> Result<EnvelopeRewrapResult, SdkError>
pub fn protect_bytes_with_tdf( &self, key: &LocalSymmetricKey, plaintext: &[u8], request: LocalProtectionRequest, ) -> Result<TdfProtectionResult, SdkError>
pub fn protect_bytes_with_tdf_using_key_source( &self, key_source: &LocalSymmetricKeySource, plaintext: &[u8], request: LocalProtectionRequest, ) -> Result<TdfProtectionResult, SdkError>
pub fn access_bytes_with_tdf( &self, key: &LocalSymmetricKey, artifact_bytes: &[u8], ) -> Result<TdfAccessResult, SdkError>
pub fn access_bytes_with_tdf_using_key_source( &self, key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], ) -> Result<TdfAccessResult, SdkError>
pub fn rewrap_bytes_with_tdf( &self, current_key: &LocalSymmetricKey, new_key: &LocalSymmetricKey, artifact_bytes: &[u8], ) -> Result<TdfRewrapResult, SdkError>
pub fn rewrap_bytes_with_tdf_using_key_sources( &self, current_key_source: &LocalSymmetricKeySource, new_key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], ) -> Result<TdfRewrapResult, SdkError>
pub fn set_tdf_attributes( &self, key: &LocalSymmetricKey, artifact_bytes: &[u8], attributes: BTreeMap<String, String>, ) -> Result<TdfRewrapResult, SdkError>
pub fn set_tdf_attributes_using_key_source( &self, key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], attributes: BTreeMap<String, String>, ) -> Result<TdfRewrapResult, SdkError>
pub fn edit_tdf_attributes( &self, key: &LocalSymmetricKey, artifact_bytes: &[u8], edit: LocalAttributeEdit, ) -> Result<TdfRewrapResult, SdkError>
pub fn edit_tdf_attributes_using_key_source( &self, key_source: &LocalSymmetricKeySource, artifact_bytes: &[u8], edit: LocalAttributeEdit, ) -> Result<TdfRewrapResult, SdkError>
pub fn sign_bytes_with_detached_signature( &self, signing_key: &LocalSigningKey, content: &[u8], request: LocalProtectionRequest, ) -> Result<DetachedSignatureSignResult, SdkError>
pub fn verify_bytes_with_detached_signature( &self, verifying_key: &LocalVerifyingKey, content: &[u8], artifact_bytes: &[u8], ) -> Result<DetachedSignatureVerifyResult, SdkError>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more