Struct keygate_jwt::algorithms::ES384PublicKey
source · [−]pub struct ES384PublicKey { /* private fields */ }Implementations
sourceimpl ES384PublicKey
impl ES384PublicKey
pub fn from_bytes(raw: &[u8]) -> Result<Self, JWTError>
pub fn from_der(der: &[u8]) -> Result<Self, JWTError>
pub fn from_pem(pem: &str) -> Result<Self, JWTError>
pub fn to_bytes(&self) -> Vec<u8>
pub fn to_der(&self) -> Result<Vec<u8>, JWTError>
pub fn to_pem(&self) -> Result<String, JWTError>
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations
sourceimpl Clone for ES384PublicKey
impl Clone for ES384PublicKey
sourcefn clone(&self) -> ES384PublicKey
fn clone(&self) -> ES384PublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ES384PublicKey
impl Debug for ES384PublicKey
sourceimpl ECDSAP384PublicKeyLike for ES384PublicKey
impl ECDSAP384PublicKeyLike for ES384PublicKey
fn jwt_alg_name() -> &'static str
fn public_key(&self) -> &P384PublicKey
fn key_id(&self) -> &Option<String>
fn set_key_id(&mut self, key_id: String)
fn verify_token<CustomClaims: Serialize + DeserializeOwned>(
&self,
token: &str,
options: Option<VerificationOptions>
) -> Result<JWTClaims<CustomClaims>, JWTError>
fn create_key_id(&mut self) -> &str
Auto Trait Implementations
impl RefUnwindSafe for ES384PublicKey
impl Send for ES384PublicKey
impl Sync for ES384PublicKey
impl Unpin for ES384PublicKey
impl UnwindSafe for ES384PublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more