pub struct SigningContext<'a> { /* private fields */ }Expand description
Complete security domain bound into one canonical signature.
Implementations§
Source§impl<'a> SigningContext<'a>
impl<'a> SigningContext<'a>
Sourcepub const fn new(
provider: ProviderId,
service: ServiceId,
endpoint: EndpointIdentity<'a>,
key_id: SigningKeyId<'a>,
digest_algorithm: SigningDigestAlgorithm<'a>,
signature_algorithm: SigningAlgorithm<'a>,
) -> Self
pub const fn new( provider: ProviderId, service: ServiceId, endpoint: EndpointIdentity<'a>, key_id: SigningKeyId<'a>, digest_algorithm: SigningDigestAlgorithm<'a>, signature_algorithm: SigningAlgorithm<'a>, ) -> Self
Binds required provider, service, endpoint, key, and algorithm identity.
Sourcepub const fn with_audience(self, value: ScopeValue<'a>) -> Self
pub const fn with_audience(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned audience.
Sourcepub const fn with_account(self, value: ScopeValue<'a>) -> Self
pub const fn with_account(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned account.
Sourcepub const fn with_tenant(self, value: ScopeValue<'a>) -> Self
pub const fn with_tenant(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned tenant.
Sourcepub const fn provider(self) -> ProviderId
pub const fn provider(self) -> ProviderId
Returns the bound provider.
Sourcepub const fn endpoint(self) -> EndpointIdentity<'a>
pub const fn endpoint(self) -> EndpointIdentity<'a>
Returns the normalized bound endpoint.
Sourcepub const fn audience(self) -> Option<ScopeValue<'a>>
pub const fn audience(self) -> Option<ScopeValue<'a>>
Returns the optional bound audience.
Sourcepub const fn account(self) -> Option<ScopeValue<'a>>
pub const fn account(self) -> Option<ScopeValue<'a>>
Returns the optional bound account.
Sourcepub const fn tenant(self) -> Option<ScopeValue<'a>>
pub const fn tenant(self) -> Option<ScopeValue<'a>>
Returns the optional bound tenant.
Sourcepub const fn key_id(self) -> SigningKeyId<'a>
pub const fn key_id(self) -> SigningKeyId<'a>
Returns the bound key identifier.
Sourcepub const fn digest_algorithm(self) -> SigningDigestAlgorithm<'a>
pub const fn digest_algorithm(self) -> SigningDigestAlgorithm<'a>
Returns the bound request-body digest algorithm identifier.
Sourcepub const fn signature_algorithm(self) -> SigningAlgorithm<'a>
pub const fn signature_algorithm(self) -> SigningAlgorithm<'a>
Returns the bound signature algorithm identifier.
Trait Implementations§
Source§impl<'a> Clone for SigningContext<'a>
impl<'a> Clone for SigningContext<'a>
Source§fn clone(&self) -> SigningContext<'a>
fn clone(&self) -> SigningContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SigningContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for SigningContext<'a>
impl<'a> RefUnwindSafe for SigningContext<'a>
impl<'a> Send for SigningContext<'a>
impl<'a> Sync for SigningContext<'a>
impl<'a> Unpin for SigningContext<'a>
impl<'a> UnsafeUnpin for SigningContext<'a>
impl<'a> UnwindSafe for SigningContext<'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