create
Creates a SD-JWT.
This implementation uses recursive disclosures for all claims in the claims parameter.
Note: this variant with String instead of JsonObject only exists for interoperability with Swift.
Parameters
the key to sign the issuerSigned JWT with. If this is a AsymmetricKey.X509Certified the certificate chain will be included in the x5c claim and always be disclosed.
if set, a cnf claim with this public key will be included in the Issuer-signed JWT.
the object with claims that can be selectively disclosed.
claims to include in the Issuer-signed JWT which are always disclosed. This must at least include the iss claim and may include more such as vct, sub, iat, nbf, exp.
the hash algorithm to use, e.g. Algorithm.SHA256.
the Random to use to generate salts.
number of bits to use for each salt.
the time the SD-JWT was created, pass Instant.DISTANT_PAST to not set iat claim.
the duration in which the SD-JWT expire or null.
Creates a SD-JWT.
This implementation uses recursive disclosures for all claims in the claims parameter.
Parameters
the key to sign the issuerSigned JWT with. If this is a AsymmetricKey.X509Certified the certificate chain will be included in the x5c claim and always be disclosed.
if set, a cnf claim with this public key will be included in the Issuer-signed JWT.
the object with claims that can be selectively disclosed.
claims to include in the Issuer-signed JWT which are always disclosed. This must at least include the iss claim and may include more such as vct, sub, iat, nbf, exp.
the hash algorithm to use, e.g. Algorithm.SHA256.
the Random to use to generate salts.
number of bits to use for each salt.
the time the SD-JWT was created, pass Instant.DISTANT_PAST to not set iat claim.
the duration in which the SD-JWT expire or null.