pub struct Exact { /* private fields */ }Expand description
Authorizes only the exact SPIFFE IDs in the allow list.
Implementations§
Source§impl Exact
impl Exact
Sourcepub fn new<I>(ids: I) -> Result<Self>
pub fn new<I>(ids: I) -> Result<Self>
Creates a new Exact authorizer, failing if any SPIFFE ID is invalid.
All SPIFFE IDs must be valid; invalid IDs are not silently ignored.
If the iterator is empty, the resulting authorizer will authorize no SPIFFE IDs
(all authorization checks will return false).
§Errors
Returns Error::AuthorizerConfig if any ID cannot be parsed.
Trait Implementations§
Source§impl Authorizer for Exact
impl Authorizer for Exact
Returns
true if the peer SPIFFE ID is authorized.Auto Trait Implementations§
impl Freeze for Exact
impl RefUnwindSafe for Exact
impl Send for Exact
impl Sync for Exact
impl Unpin for Exact
impl UnwindSafe for Exact
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request