pub struct PortableAuthority<'a> {
pub audience: &'a AudienceId,
pub issuer: Principal,
pub mechanism: PortableMechanism,
pub key_binding_id: [u8; 32],
pub grants: &'a [DelegatedRoleGrant],
pub caller: Principal,
pub now_ns: u64,
pub authority_not_before_ns: u64,
pub authority_expires_at_ns: u64,
pub enrollment_expires_at_ns: u64,
pub min_login_started_at_ns: u64,
}Expand description
Protected runtime and active enrollment inputs, never inferred from claims. The host must select current, unrevoked authority under its transaction lock. Generation, login revocation, replay and atomic session writes remain host/ session-engine obligations; this context cannot attest its own provenance.
Fields§
§audience: &'a AudienceId§issuer: Principal§mechanism: PortableMechanism§key_binding_id: [u8; 32]§grants: &'a [DelegatedRoleGrant]§caller: PrincipalActual authenticated ingress sender, not an account subject or request field.
now_ns: u64§enrollment_expires_at_ns: u64§min_login_started_at_ns: u64Immutable login start floor, including the host’s qualified reset margin.
Trait Implementations§
Source§impl<'a> Clone for PortableAuthority<'a>
impl<'a> Clone for PortableAuthority<'a>
impl<'a> Copy for PortableAuthority<'a>
Auto Trait Implementations§
impl<'a> Freeze for PortableAuthority<'a>
impl<'a> RefUnwindSafe for PortableAuthority<'a>
impl<'a> Send for PortableAuthority<'a>
impl<'a> Sync for PortableAuthority<'a>
impl<'a> Unpin for PortableAuthority<'a>
impl<'a> UnsafeUnpin for PortableAuthority<'a>
impl<'a> UnwindSafe for PortableAuthority<'a>
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