pub struct KeyAccessObject {
pub key_type: String,
pub url: String,
pub protocol: String,
pub wrapped_key: String,
pub policy_binding: KasPolicyBinding,
pub encrypted_metadata: Option<String>,
pub kid: Option<String>,
pub header: Option<String>,
pub ephemeral_public_key: Option<String>,
}Expand description
Key access object details
Fields§
§key_type: String§url: String§protocol: String§wrapped_key: String§policy_binding: KasPolicyBinding§encrypted_metadata: Option<String>§kid: Option<String>§header: Option<String>NanoTDF header bytes (base64 encoded) - used for NanoTDF rewrap requests
ephemeral_public_key: Option<String>Ephemeral public key for EC-wrapped keys (PEM format)
Implementations§
Source§impl KeyAccessObject
impl KeyAccessObject
Sourcepub fn detect_algorithm(&self) -> &'static str
pub fn detect_algorithm(&self) -> &'static str
Detect the appropriate algorithm based on key type
Sourcepub fn is_ec_wrapped(&self) -> bool
pub fn is_ec_wrapped(&self) -> bool
Check if this key access uses EC wrapping
Sourcepub fn is_rsa_wrapped(&self) -> bool
pub fn is_rsa_wrapped(&self) -> bool
Check if this key access uses RSA wrapping
Trait Implementations§
Source§impl Debug for KeyAccessObject
impl Debug for KeyAccessObject
Source§impl<'de> Deserialize<'de> for KeyAccessObject
impl<'de> Deserialize<'de> for KeyAccessObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&KeyAccess> for KeyAccessObject
impl From<&KeyAccess> for KeyAccessObject
Source§impl From<&KeyAccessObject> for KeyAccess
impl From<&KeyAccessObject> for KeyAccess
Source§fn from(kao: &KeyAccessObject) -> Self
fn from(kao: &KeyAccessObject) -> Self
Converts to this type from the input type.
Source§impl From<KeyAccess> for KeyAccessObject
impl From<KeyAccess> for KeyAccessObject
Source§impl From<KeyAccessObject> for KeyAccess
impl From<KeyAccessObject> for KeyAccess
Source§fn from(kao: KeyAccessObject) -> Self
fn from(kao: KeyAccessObject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyAccessObject
impl RefUnwindSafe for KeyAccessObject
impl Send for KeyAccessObject
impl Sync for KeyAccessObject
impl Unpin for KeyAccessObject
impl UnsafeUnpin for KeyAccessObject
impl UnwindSafe for KeyAccessObject
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