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§
§impl<UT> ConvertError<UT> for ScopedKey
impl<UT> ConvertError<UT> for ScopedKey
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
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>,
§impl<UT> FfiConverter<UT> for ScopedKey
impl<UT> FfiConverter<UT> for ScopedKey
§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
§type FfiType = RustBuffer
type FfiType = RustBuffer
§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
§impl<UT> LiftReturn<UT> for ScopedKey
impl<UT> LiftReturn<UT> for ScopedKey
§type ReturnType = <ScopedKey as Lift<UT>>::FfiType
type ReturnType = <ScopedKey as Lift<UT>>::FfiType
§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
§impl<UT> LowerError<UT> for ScopedKey
impl<UT> LowerError<UT> for ScopedKey
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
§impl<UT> LowerReturn<UT> for ScopedKey
impl<UT> LowerReturn<UT> for ScopedKey
§type ReturnType = <ScopedKey as Lower<UT>>::FfiType
type ReturnType = <ScopedKey as Lower<UT>>::FfiType
§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
§impl<UT> TypeId<UT> for ScopedKey
impl<UT> TypeId<UT> for ScopedKey
const TYPE_ID_META: MetadataBuffer
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,
§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