pub struct SuppliedSessionPolicy { /* private fields */ }Expand description
Strict non-secret policy for one supplied session.
Implementations§
Source§impl SuppliedSessionPolicy
impl SuppliedSessionPolicy
Sourcepub fn parse_toml(
application_url: &Url,
source: &[u8],
) -> Result<Self, SuppliedSessionPolicyError>
pub fn parse_toml( application_url: &Url, source: &[u8], ) -> Result<Self, SuppliedSessionPolicyError>
Parses and resolves a strict policy beneath application_url.
Sourcepub const fn version(&self) -> SuppliedSessionPolicyVersion
pub const fn version(&self) -> SuppliedSessionPolicyVersion
Policy schema generation.
Sourcepub fn policy_reference(&self) -> &str
pub fn policy_reference(&self) -> &str
Stable semantic policy reference; it contains no credential or raw URL.
Sourcepub fn application_reference(&self) -> &str
pub fn application_reference(&self) -> &str
Stable exact-application reference; it contains no raw URL.
Sourcepub fn principal_reference(&self) -> &str
pub fn principal_reference(&self) -> &str
Opaque run-local principal slot; it is not an authenticated or cross-run identity.
Sourcepub fn principal_alias(&self) -> &str
pub fn principal_alias(&self) -> &str
Explicitly non-secret operator assertion saved for cross-run context distinction.
This label is not authenticated identity truth and is never derived from the authorization value. Operators should use a non-sensitive stable alias.
Sourcepub fn health_field_reference(&self) -> &str
pub fn health_field_reference(&self) -> &str
Stable configured-health-field reference.
Sourcepub const fn credential_mechanism(&self) -> SuppliedSessionCredentialMechanism
pub const fn credential_mechanism(&self) -> SuppliedSessionCredentialMechanism
Selected credential mechanism.
Sourcepub const fn credential_acquisition(
&self,
) -> SuppliedSessionCredentialAcquisition
pub const fn credential_acquisition( &self, ) -> SuppliedSessionCredentialAcquisition
How the protected-request credential is established.
V2 response-cookie update behavior, absent for V1.
Non-secret aggregate cookie metadata, absent for V1.
Sourcepub fn resource_count(&self) -> usize
pub fn resource_count(&self) -> usize
Number of selected protected resources.