pub struct NativeHostCapability { /* private fields */ }Expand description
Retained host authority supplied by the native product’s authenticated setup. Neither a prompt, agent DID nor identifier can construct the signing key. Keep one capability per policy store so all requests share revocation state.
Implementations§
Source§impl NativeHostCapability
impl NativeHostCapability
Sourcepub fn open_existing(
root: &Path,
authority_root: &Path,
trust: TrustedPolicyIdentity,
installer: SigningKey,
owner: Arc<NativeAuthority>,
budget: usize,
) -> Result<Self, PolicyError>
pub fn open_existing( root: &Path, authority_root: &Path, trust: TrustedPolicyIdentity, installer: SigningKey, owner: Arc<NativeAuthority>, budget: usize, ) -> Result<Self, PolicyError>
Reopen a previously explicitly installed policy using configured trust. Missing policy fails closed; this method never silently installs rules.
Sourcepub fn from_installed(
host: Arc<Mutex<NativePolicyHost>>,
installer: SigningKey,
owner: Arc<NativeAuthority>,
) -> Result<Self, PolicyError>
pub fn from_installed( host: Arc<Mutex<NativePolicyHost>>, installer: SigningKey, owner: Arc<NativeAuthority>, ) -> Result<Self, PolicyError>
Retain the actual explicitly installed host. The product may install V3 rules through NativePolicyHost::install_evidence before this handoff.
Sourcepub fn bind_prepared(
&self,
session: &SessionHandle,
identifier: IdentifierSelection<'_>,
receipt: NativePreparedReceipt,
) -> Result<NativeGovernedRequest, PolicyError>
pub fn bind_prepared( &self, session: &SessionHandle, identifier: IdentifierSelection<'_>, receipt: NativePreparedReceipt, ) -> Result<NativeGovernedRequest, PolicyError>
Bind an actual authenticated session and its selected admitted identifier. A subject may choose any of its admitted identifiers; policy authorization is still independently checked at admission and each publication boundary.
Sourcepub fn bind_session(
&self,
session: &SessionHandle,
identifier: IdentifierSelection<'_>,
preparation: NativePreparationSpec,
) -> Result<NativeGovernedRequest, PolicyError>
pub fn bind_session( &self, session: &SessionHandle, identifier: IdentifierSelection<'_>, preparation: NativePreparationSpec, ) -> Result<NativeGovernedRequest, PolicyError>
Normal product handoff: bind actual session authority before the worker owns its thread-local numerical engine. The worker must still prepare all actual inputs/providers and seal the receipt before any prefill executes.
Auto Trait Implementations§
impl Freeze for NativeHostCapability
impl RefUnwindSafe for NativeHostCapability
impl Send for NativeHostCapability
impl Sync for NativeHostCapability
impl Unpin for NativeHostCapability
impl UnsafeUnpin for NativeHostCapability
impl UnwindSafe for NativeHostCapability
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more