[−][src]Enum openidconnect::core::CoreJsonWebKeyUse
Usage restriction for a JSON Web key.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Key may be used for digital signatures.
Key may be used for encryption.
Trait Implementations
impl Clone for CoreJsonWebKeyUse
[src]
fn clone(&self) -> CoreJsonWebKeyUse
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CoreJsonWebKeyUse
[src]
impl<'de> Deserialize<'de> for CoreJsonWebKeyUse
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JsonWebKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse> for CoreJsonWebKey
[src]
fn key_id(&self) -> Option<&JsonWebKeyId>
[src]
fn key_type(&self) -> &CoreJsonWebKeyType
[src]
fn key_use(&self) -> Option<&CoreJsonWebKeyUse>
[src]
fn new_symmetric(key: Vec<u8>) -> Self
[src]
fn verify_signature(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureVerificationError>
[src]
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureVerificationError>
impl JsonWebKeyUse for CoreJsonWebKeyUse
[src]
fn allows_signature(&self) -> bool
[src]
fn allows_encryption(&self) -> bool
[src]
impl PartialEq<CoreJsonWebKeyUse> for CoreJsonWebKeyUse
[src]
fn eq(&self, other: &CoreJsonWebKeyUse) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreHmacKey
[src]
fn sign(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
[src]
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
fn as_verification_key(&self) -> CoreJsonWebKey
[src]
impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreRsaPrivateSigningKey
[src]
fn sign(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
msg: &[u8]
) -> Result<Vec<u8>, SigningError>
[src]
&self,
signature_alg: &CoreJwsSigningAlgorithm,
msg: &[u8]
) -> Result<Vec<u8>, SigningError>
fn as_verification_key(&self) -> CoreJsonWebKey
[src]
impl Serialize for CoreJsonWebKeyUse
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CoreJsonWebKeyUse
[src]
Auto Trait Implementations
impl RefUnwindSafe for CoreJsonWebKeyUse
impl Send for CoreJsonWebKeyUse
impl Sync for CoreJsonWebKeyUse
impl Unpin for CoreJsonWebKeyUse
impl UnwindSafe for CoreJsonWebKeyUse
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,