PolicyContext

Trait PolicyContext 

Source
pub trait PolicyContext {
    // Required methods
    fn policy_metadata(&self) -> Rc<PolicyMetadata>;
    fn connection_properties(&self) -> &dyn PropertyAccessor;
}
Expand description

An interface of the Flex Policy Context.

PolicyContext is responsible for

  • Access policy metadata,
  • Manage authentication data.

Required Methods§

Source

fn policy_metadata(&self) -> Rc<PolicyMetadata>

Returns the policy metadata.

Source

fn connection_properties(&self) -> &dyn PropertyAccessor

Returns a property accessor

Implementations§

Source§

impl dyn PolicyContext

Source

pub fn default() -> &'static dyn PolicyContext

Implementors§