SdJwt
A SD-JWT according to draft-ietf-oauth-selective-disclosure-jwt.
When a SdJwt instance is initialized, cursory checks on the provided string with the compact serialization are performed. Full verification of the SD-JWT can be performed using the verify method which also returns the processed payload.
For presentment, first use one of the filter methods to generate an SD-JWT with a reduced set of disclosures. If the SD-JWT is not using key-binding (can be checked by see if kbKey is null), the resulting SD-JWT can be sent to the verifier. Otherwise use one of the present methods to generate a SdJwtKb instance. This implementation supports SD-JWTs with disclosures nested at any level.
To create a SD-JWT, use Companion.create. This currently only supports creating SD-JWT with fully recursive disclosures.
This class is immutable.
Parameters
the compact serialization of the SD-JWT.
Throws
if the given compact serialization is malformed.
Properties
The value of the vct claim in the issuer-signed JWT, if present.
The disclosures in the SD-JWT.
The value of the cnf claim in the issuer-signed JWT, if present.
The value of the exp claim in the issuer-signed JWT, if present.
The certificate chain in the x5c header element of the issuer-signed JWT, if present.