[−][src]Struct biscuit::jwe::RegisteredHeader
Registered JWE header fields. The fields are defined by RFC 7516#4.1
Fields
cek_algorithm: KeyManagementAlgorithm
Algorithm used to encrypt or determine the value of the Content Encryption Key
enc_algorithm: ContentEncryptionAlgorithm
Content encryption algorithm used to perform authenticated encryption on the plaintext to produce the ciphertext and the Authentication Tag
compression_algorithm: Option<CompressionAlgorithm>
Compression algorithm applied to plaintext before encryption, if any. Compression is not supported at the moment. Must only appear in integrity protected header.
media_type: Option<String>
Media type of the complete JWE. Serialized to typ
.
Defined in RFC7519#5.1 and additionally
RFC7515#4.1.9.
The "typ" value "JOSE" can be used by applications to indicate that
this object is a JWS or JWE using the JWS Compact Serialization or
the JWE Compact Serialization. The "typ" value "JOSE+JSON" can be
used by applications to indicate that this object is a JWS or JWE
using the JWS JSON Serialization or the JWE JSON Serialization.
Other type values can also be used by applications.
content_type: Option<String>
Content Type of the secured payload.
Typically used to indicate the presence of a nested JOSE object which is signed or encrypted.
Serialized to cty
.
Defined in RFC7519#5.2 and additionally
RFC7515#4.1.10.
web_key_url: Option<String>
The JSON Web Key Set URL. This is currently not implemented (correctly).
Serialized to jku
.
Defined in RFC7515#4.1.2.
web_key: Option<String>
The JSON Web Key. This is currently not implemented (correctly).
Serialized to jwk
.
Defined in RFC7515#4.1.3.
key_id: Option<String>
The Key ID. This is currently not implemented (correctly).
Serialized to kid
.
Defined in RFC7515#4.1.3.
x509_url: Option<String>
X.509 Public key cerfificate URL. This is currently not implemented (correctly).
Serialized to x5u
.
Defined in RFC7515#4.1.5.
x509_chain: Option<Vec<String>>
X.509 public key certificate chain. This is currently not implemented (correctly).
Serialized to x5c
.
Defined in RFC7515#4.1.6.
x509_fingerprint: Option<String>
X.509 Certificate thumbprint. This is currently not implemented (correctly).
Also not implemented, is the SHA-256 thumbprint variant of this header.
Serialized to x5t
.
Defined in RFC7515#4.1.7.
critical: Option<Vec<String>>
List of critical extended headers.
This is currently not implemented (correctly).
Serialized to crit
.
Defined in RFC7515#4.1.11.
Trait Implementations
impl Clone for RegisteredHeader
[src]
fn clone(&self) -> RegisteredHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RegisteredHeader
[src]
impl Default for RegisteredHeader
[src]
fn default() -> RegisteredHeader
[src]
impl<'de> Deserialize<'de> for RegisteredHeader
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for RegisteredHeader
[src]
impl From<RegisteredHeader> for Header<Empty>
[src]
fn from(registered: RegisteredHeader) -> Self
[src]
impl PartialEq<RegisteredHeader> for RegisteredHeader
[src]
fn eq(&self, other: &RegisteredHeader) -> bool
[src]
fn ne(&self, other: &RegisteredHeader) -> bool
[src]
impl Serialize for RegisteredHeader
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for RegisteredHeader
[src]
impl StructuralPartialEq for RegisteredHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for RegisteredHeader
impl Send for RegisteredHeader
impl Sync for RegisteredHeader
impl Unpin for RegisteredHeader
impl UnwindSafe for RegisteredHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,