[−][src]Struct aliri_jose::jwa::Rsa
RSA key
Implementations
impl Rsa
[src]
pub fn from_public_components(
modulus: impl Into<Base64Url>,
exponent: impl Into<Base64Url>
) -> Result<Self, KeyRejected>
[src]
modulus: impl Into<Base64Url>,
exponent: impl Into<Base64Url>
) -> Result<Self, KeyRejected>
Constructs a public key from the modulus and exponent
pub fn public_only(self) -> Self
[src]
Removes the private key components, if any
Trait Implementations
impl Clone for Rsa
[src]
impl Debug for Rsa
[src]
impl<'de> Deserialize<'de> for Rsa
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Rsa
[src]
impl From<PublicKey> for Rsa
[src]
impl From<Rsa> for Jwk
[src]
impl PartialEq<Rsa> for Rsa
[src]
impl Serialize for Rsa
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Signer for Rsa
[src]
type Algorithm = SigningAlgorithm
The useable signature algorithms
type Error = SigningError
The error returned on failure to sign
fn can_sign(&self, alg: Self::Algorithm) -> bool
[src]
fn sign(
&self,
alg: Self::Algorithm,
data: &[u8]
) -> Result<Vec<u8>, Self::Error>
[src]
&self,
alg: Self::Algorithm,
data: &[u8]
) -> Result<Vec<u8>, Self::Error>
impl StructuralEq for Rsa
[src]
impl StructuralPartialEq for Rsa
[src]
impl Verifier for Rsa
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rsa
impl Send for Rsa
impl Sync for Rsa
impl Unpin for Rsa
impl UnwindSafe for Rsa
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> 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>,