Struct jsonwebtoken::jwk::CommonParameters
source · pub struct CommonParameters {
pub public_key_use: Option<PublicKeyUse>,
pub key_operations: Option<Vec<KeyOperations>>,
pub key_algorithm: Option<KeyAlgorithm>,
pub key_id: Option<String>,
pub x509_url: Option<String>,
pub x509_chain: Option<Vec<String>>,
pub x509_sha1_fingerprint: Option<String>,
pub x509_sha256_fingerprint: Option<String>,
}
Expand description
Common JWK parameters
Fields§
§public_key_use: Option<PublicKeyUse>
The intended use of the public key. Should not be specified with key_operations
.
See sections 4.2 and 4.3 of RFC7517.
key_operations: Option<Vec<KeyOperations>>
The “key_ops” (key operations) parameter identifies the operation(s)
for which the key is intended to be used. The “key_ops” parameter is
intended for use cases in which public, private, or symmetric keys
may be present.
Should not be specified with public_key_use
.
See sections 4.2 and 4.3 of RFC7517.
key_algorithm: Option<KeyAlgorithm>
The algorithm keys intended for use with the key.
key_id: Option<String>
The case sensitive Key ID for the key
x509_url: Option<String>
X.509 Public key cerfificate URL. This is currently not implemented (correctly).
Serialized to x5u
.
x509_chain: Option<Vec<String>>
X.509 public key certificate chain. This is currently not implemented (correctly).
Serialized to x5c
.
x509_sha1_fingerprint: Option<String>
X.509 Certificate SHA1 thumbprint. This is currently not implemented (correctly).
Serialized to x5t
.
x509_sha256_fingerprint: Option<String>
X.509 Certificate SHA256 thumbprint. This is currently not implemented (correctly).
Serialized to x5t#S256
.
Trait Implementations§
source§impl Clone for CommonParameters
impl Clone for CommonParameters
source§fn clone(&self) -> CommonParameters
fn clone(&self) -> CommonParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommonParameters
impl Debug for CommonParameters
source§impl Default for CommonParameters
impl Default for CommonParameters
source§fn default() -> CommonParameters
fn default() -> CommonParameters
source§impl<'de> Deserialize<'de> for CommonParameters
impl<'de> Deserialize<'de> for CommonParameters
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>,
source§impl Hash for CommonParameters
impl Hash for CommonParameters
source§impl PartialEq for CommonParameters
impl PartialEq for CommonParameters
source§impl Serialize for CommonParameters
impl Serialize for CommonParameters
impl Eq for CommonParameters
impl StructuralPartialEq for CommonParameters
Auto Trait Implementations§
impl Freeze for CommonParameters
impl RefUnwindSafe for CommonParameters
impl Send for CommonParameters
impl Sync for CommonParameters
impl Unpin for CommonParameters
impl UnwindSafe for CommonParameters
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.