pub struct AuthorizationKeyRing { /* private fields */ }Implementations§
Source§impl AuthorizationKeyRing
impl AuthorizationKeyRing
pub fn new(active: VerificationKey) -> Result<Self, DomainError>
pub fn rotate( &self, next_active: VerificationKey, transition: CursorTransition, ) -> Result<Self, DomainError>
pub fn validate(&self) -> Result<(), DomainError>
pub const fn active(&self) -> &VerificationKey
pub fn accepts(&self, id: &VerificationKeyId, at: OffsetDateTime) -> bool
pub const fn cursor_generation(&self) -> u64
pub fn verification_keys(&self) -> &[VerificationKey]
Trait Implementations§
Source§impl Clone for AuthorizationKeyRing
impl Clone for AuthorizationKeyRing
Source§impl Debug for AuthorizationKeyRing
impl Debug for AuthorizationKeyRing
Source§impl<'de> Deserialize<'de> for AuthorizationKeyRing
impl<'de> Deserialize<'de> for AuthorizationKeyRing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthorizationKeyRing
Source§impl PartialEq for AuthorizationKeyRing
impl PartialEq for AuthorizationKeyRing
Source§impl Serialize for AuthorizationKeyRing
impl Serialize for AuthorizationKeyRing
impl StructuralPartialEq for AuthorizationKeyRing
Auto Trait Implementations§
impl Freeze for AuthorizationKeyRing
impl RefUnwindSafe for AuthorizationKeyRing
impl Send for AuthorizationKeyRing
impl Sync for AuthorizationKeyRing
impl Unpin for AuthorizationKeyRing
impl UnsafeUnpin for AuthorizationKeyRing
impl UnwindSafe for AuthorizationKeyRing
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