[][src]Struct aliri_jose::jwa::Rsa

pub struct Rsa { /* fields omitted */ }

RSA key

Implementations

impl Rsa[src]

pub fn from_public_components(
    modulus: impl Into<Base64Url>,
    exponent: impl Into<Base64Url>
) -> Result<Self, KeyRejected>
[src]

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]

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]

impl Signer for Rsa[src]

type Algorithm = SigningAlgorithm

The useable signature algorithms

type Error = SigningError

The error returned on failure to sign

impl StructuralEq for Rsa[src]

impl StructuralPartialEq for Rsa[src]

impl Verifier for Rsa[src]

type Algorithm = SigningAlgorithm

The verifiable signature algorithms

type Error = SignatureMismatch

The error returned on a failure to verify

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.