pub struct ScopedKey {
pub kty: String,
pub scope: String,
pub k: String,
pub kid: String,
}
Expand description
A cryptographic key associated with an OAuth scope.
Some OAuth scopes have a corresponding client-side encryption key that is required in order to access protected data. This struct represents such key material in a format compatible with the common “JWK” standard.
Fields§
§kty: String
The type of key.
In practice for FxA, this will always be string string “oct” (short for “octal”) to represent a raw symmetric key.
scope: String
The OAuth scope with which this key is associated.
k: String
The key material, as base64-url-encoded bytes.
⚠️ Warning: the value of this field should never be revealed outside of the application. For example, it should never to sent to a server or logged in a log file.
kid: String
An opaque unique identifier for this key.
Unlike the k
field, this value is not secret and may be revealed to the server.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ScopedKey
impl<'de> Deserialize<'de> for ScopedKey
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>,
Auto Trait Implementations§
impl Freeze for ScopedKey
impl RefUnwindSafe for ScopedKey
impl Send for ScopedKey
impl Sync for ScopedKey
impl Unpin for ScopedKey
impl UnwindSafe for ScopedKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more