pub struct SDJWTVerifier {
pub verified_claims: Value,
/* private fields */
}Fields§
§verified_claims: ValueImplementations§
Source§impl SDJWTVerifier
impl SDJWTVerifier
Sourcepub fn new(
sd_jwt_presentation: String,
cb_get_issuer_key: Box<dyn Fn(&str, &Header) -> DecodingKey>,
expected_aud: Option<String>,
expected_nonce: Option<String>,
serialization_format: SDJWTSerializationFormat,
) -> Result<Self>
pub fn new( sd_jwt_presentation: String, cb_get_issuer_key: Box<dyn Fn(&str, &Header) -> DecodingKey>, expected_aud: Option<String>, expected_nonce: Option<String>, serialization_format: SDJWTSerializationFormat, ) -> Result<Self>
Create a new SDJWTVerifier instance.
§Arguments
sd_jwt_presentation- The SD-JWT presentation to verify.cb_get_issuer_key- A callback function that takes the issuer and the header of the SD-JWT and returns the public key of the issuer.expected_aud- The expected audience of the SD-JWT.expected_nonce- The expected nonce of the SD-JWT.serialization_format- The serialization format of the SD-JWT, see SDJWTSerializationFormat.
§Returns
SDJWTVerifier- The SDJWTVerifier instance. The verified claims can be accessed via theverified_claimsproperty.
Auto Trait Implementations§
impl Freeze for SDJWTVerifier
impl !RefUnwindSafe for SDJWTVerifier
impl !Send for SDJWTVerifier
impl !Sync for SDJWTVerifier
impl Unpin for SDJWTVerifier
impl !UnwindSafe for SDJWTVerifier
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