builder

fun builder(jsonInstance: Json = defaultJsonParser): JwtBuilder(source)

Creates a new JwtBuilder for constructing JWS or JWE tokens.

Return

a new JwtBuilder

Parameters

jsonInstance

the Json instance to use for all serialization within this builder; defaults to the library's internal configuration (ignoreUnknownKeys = true, explicitNulls = false)