pub fn signer_from_pem(
        &self,
        input: impl AsRef<[u8]>,
    ) -> Result<RsassaPssJwsSigner, JoseError> {
        let key_pair = self.key_pair_from_pem(input.as_ref())?;
        Ok(RsassaPssJwsSigner {
            algorithm: self.clone(),
            private_key: key_pair.into_private_key(),
            key_id: None,
        })
    }
/// Return a signer from a private key of common or traditinal PEM format.
///
/// Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo
/// that surrounded by "-----BEGIN/END PRIVATE KEY----".
///
/// Traditional PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo or PKCS#1 RSAPrivateKey
/// that surrounded by "-----BEGIN/END RSA-PSS/RSA PRIVATE KEY----".
///
/// # Arguments
/// * `input` - A private key of common or traditinal PEM format.
Return a signer from a private key of common or traditinal PEM format.
Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo
that surrounded by "BEGIN/END PRIVATE KEY----".


Return a signer from a private key of common or traditinal PEM format . Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by " BEGIN / END PRIVATE KEY ---- " .
pub fn signer_from_pem(
        &self,
        input: impl AsRef<[u8]>,
    ) -> Result<RsassaPssJwsSigner, JoseError> {
        let key_pair = self.key_pair_from_pem(input.as_ref())?;
        Ok(RsassaPssJwsSigner {
            algorithm: self.clone(),
            private_key: key_pair.into_private_key(),
            key_id: None,
        })
    }
pub fn signer_from_pem ( & self , input : impl AsRef < [ u8 ] > , ) -> Result < RsassaPssJwsSigner , JoseError > { let key_pair = self . key_pair_from_pem ( input . as_ref ( ) ) ? ; Ok ( RsassaPssJwsSigner { algorithm : self . clone ( ) , private_key : key_pair . into_private_key ( ) , key_id : None , } ) }
Return a signer from a private key of common or traditinal PEM format.
Return a signer from a private key of common or traditinal PEM format .
&self
input
impl AsRef<[u8]>
&self
input
impl AsRef<[u8]>