Struct keygate_jwt::algorithms::Ed25519PublicKey
source · [−]pub struct Ed25519PublicKey { /* private fields */ }Implementations
sourceimpl Ed25519PublicKey
impl Ed25519PublicKey
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) -> Vec<u8>
pub fn to_pem(&self) -> String
pub fn with_key_id(self, key_id: &str) -> Self
pub fn sha256_thumbprint(&self) -> Result<String, JWTError>
Trait Implementations
sourceimpl Clone for Ed25519PublicKey
impl Clone for Ed25519PublicKey
sourcefn clone(&self) -> Ed25519PublicKey
fn clone(&self) -> Ed25519PublicKey
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 Ed25519PublicKey
impl Debug for Ed25519PublicKey
sourceimpl EdDSAPublicKeyLike for Ed25519PublicKey
impl EdDSAPublicKeyLike for Ed25519PublicKey
fn jwt_alg_name() -> &'static str
fn public_key(&self) -> &Edwards25519PublicKey
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) -> Result<String, JWTError>
Auto Trait Implementations
impl RefUnwindSafe for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Sync for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
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