pub struct IdentityBindingCache { /* private fields */ }Expand description
Cache der ersten beobachteten Identity-Bindung pro GuidPrefix.
Implementations§
Source§impl IdentityBindingCache
impl IdentityBindingCache
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Cache mit explizitem Cap (DoS-Schutz). Bei Erreichen liefert
Self::observe CapacityExhausted und der Caller muss
evictieren oder ablehnen.
Sourcepub fn observe(
&mut self,
guid_prefix: GuidPrefixBytes,
identity_token_bytes: &[u8],
) -> BindingDecision
pub fn observe( &mut self, guid_prefix: GuidPrefixBytes, identity_token_bytes: &[u8], ) -> BindingDecision
Beobachtet eine GuidPrefix-zu-IdentityToken-Bindung.
identity_token_bytes ist der rohe CDR-DataHolder-Blob aus
dem PID_IDENTITY_TOKEN-Wert (siehe C3.5).
Sourcepub fn evict(&mut self, guid_prefix: &GuidPrefixBytes) -> bool
pub fn evict(&mut self, guid_prefix: &GuidPrefixBytes) -> bool
Entfernt eine Bindung — z.B. wenn ein Peer evicted wurde nach Lease-Timeout oder OCSP-Revoke. Erlaubt dem Peer, mit neuer Identity zurueck-zu-discoveren.
Sourcepub fn fingerprint_for(&self, guid_prefix: &GuidPrefixBytes) -> Option<&[u8]>
pub fn fingerprint_for(&self, guid_prefix: &GuidPrefixBytes) -> Option<&[u8]>
Liest den aktuellen Fingerprint zu einer GuidPrefix (fuer Audit/ Logging).
Trait Implementations§
Source§impl Debug for IdentityBindingCache
impl Debug for IdentityBindingCache
Source§impl Default for IdentityBindingCache
impl Default for IdentityBindingCache
Source§fn default() -> IdentityBindingCache
fn default() -> IdentityBindingCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentityBindingCache
impl RefUnwindSafe for IdentityBindingCache
impl Send for IdentityBindingCache
impl Sync for IdentityBindingCache
impl Unpin for IdentityBindingCache
impl UnsafeUnpin for IdentityBindingCache
impl UnwindSafe for IdentityBindingCache
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