pub struct ProfileKeyValidator {
validators: Vec<VerifyingKey<Sha1>>,
}Expand description
Validates Mojang profile-key certificates against the current service keys.
Authlib uses SHA1withRSA for service signatures. Player chat messages use
SHA256withRSA through RsaPublicKeyValidator instead.
Fields§
§validators: Vec<VerifyingKey<Sha1>>Implementations§
Trait Implementations§
Source§impl SignatureValidator for ProfileKeyValidator
impl SignatureValidator for ProfileKeyValidator
Source§fn validate(
&self,
updater: &dyn SignatureUpdater,
signature: &[u8],
) -> Result<bool, CryptError>
fn validate( &self, updater: &dyn SignatureUpdater, signature: &[u8], ) -> Result<bool, CryptError>
Validates that the signature is valid for the data provided by the updater.
Auto Trait Implementations§
impl Freeze for ProfileKeyValidator
impl RefUnwindSafe for ProfileKeyValidator
impl Send for ProfileKeyValidator
impl Sync for ProfileKeyValidator
impl Unpin for ProfileKeyValidator
impl UnsafeUnpin for ProfileKeyValidator
impl UnwindSafe for ProfileKeyValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more