pub struct SdJwtIssuer { /* private fields */ }Expand description
SD-JWT issuer: creates SD-JWTs with selectively disclosable claims.
Implementations§
Source§impl SdJwtIssuer
impl SdJwtIssuer
Sourcepub fn new(config: SdJwtConfig) -> Self
pub fn new(config: SdJwtConfig) -> Self
Create a new issuer with the given configuration.
Sourcepub fn issue(
&self,
claims: &Map<String, Value>,
sd_claims: &[&str],
signing_key: &str,
) -> Result<SdJwt>
pub fn issue( &self, claims: &Map<String, Value>, sd_claims: &[&str], signing_key: &str, ) -> Result<SdJwt>
Issue an SD-JWT.
claims— all claims to include in the token.sd_claims— names of claims that should be selectively disclosable. Claims not listed here are included in the JWT payload in the clear.signing_key— the symmetric key (for HMAC algorithms) or PEM-encoded private key (for RSA/EC algorithms).
Auto Trait Implementations§
impl Freeze for SdJwtIssuer
impl RefUnwindSafe for SdJwtIssuer
impl Send for SdJwtIssuer
impl Sync for SdJwtIssuer
impl Unpin for SdJwtIssuer
impl UnsafeUnpin for SdJwtIssuer
impl UnwindSafe for SdJwtIssuer
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> 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>
Converts
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>
Converts
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