Struct jwt_simple::algorithms::ES256PublicKey
source · pub struct ES256PublicKey { /* private fields */ }
Implementations§
source§impl ES256PublicKey
impl ES256PublicKey
pub fn from_bytes(raw: &[u8]) -> Result<Self, Error>
pub fn from_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pem(pem: &str) -> Result<Self, Error>
pub fn to_bytes(&self) -> Vec<u8>
pub fn to_der(&self) -> Result<Vec<u8>, Error>
pub fn to_pem(&self) -> Result<String, Error>
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations§
source§impl Clone for ES256PublicKey
impl Clone for ES256PublicKey
source§fn clone(&self) -> ES256PublicKey
fn clone(&self) -> ES256PublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more