transform

Transform credential using DSL builder.

Example:

val result = credential.transform {
toJwt()
}
val jwt = (result as TransformResult.Jwt).value

Return

The typed result of the transformation.

Parameters

block

DSL block for specifying transformation; the value it produces determines the returned TransformResult variant.

Throws

if the block does not perform a transformation.