sign
Deprecated
Use org.multipaz.jwt.buildJwt instead
Sign a claims set.
Use org.multipaz.webtoken.buildJwt instead.
Return
the compact serialization with the JWS.
Parameters
the key to sign with.
a fully-specified signature algorithm to use.
the claims set.
the value to put in the "typ" header parameter or null.
the certificate chain to put in the "x5c" header parameter or null.
Throws
if the signature algorithm is not fully specified.
if key has been destroyed.
Deprecated
Use org.multipaz.jwt.buildJwt instead
Sign a claims set using a SecureArea.
Use org.multipaz.webtoken.buildJwt instead.
Return
the compact serialization of the JWS.
Parameters
the SecureArea for the key to sign with.
the alias for key to sign with.
the reason for unlocking.
the claims set.
the value to put in the "typ" header parameter or null.
the certificate chain to put in the "x5c" header parameter or null.
Throws
if no key with the given alias exists or algorithm is incompatible.
if the key needs unlocking.
if the key is no longer usable.