Struct fxa_client::ScopedKey
source · pub struct ScopedKey {
pub kty: String,
pub scope: String,
pub k: String,
pub kid: String,
}
Expand description
A cryptograpic 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 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
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>