buildCwt
Creates a CWT message signed with the given key.
CWT header contains type, signature algorithm and, unless the key is AsymmetricKey.Anonymous, key identification (either kid or x5chain). The body of the CWT will have issuance time (iat) and optionally expiration time (exp), unless creationTime is set to Instant.DISTANT_PAST
Return
signed CWT
Parameters
CWT type as String
private key to sign CWT and provide key identifying information in the CWT header
headers that are covered by the signature
CWT issuance timestamp (iat)
validity duration for the CWT (if any)
JSON object builder block for CWT body
Creates a CWT message signed with the given key.
CWT header contains type, signature algorithm and, unless the key is AsymmetricKey.Anonymous, key identification (either kid or x5chain). The body of the CWT will have issuance time (iat) and optionally expiration time (exp), unless creationTime is set to Instant.DISTANT_PAST
Return
signed CWT
Parameters
private key to sign CWT and provide key identifying information in the CWT header
headers that are covered by the signature
CWT issuance timestamp (iat)
validity duration for the CWT (if any)
JSON object builder block for CWT body