function signCompact
source · line 87public
public fun signCompact(protectedHeader: String, payload: List<Byte>, algorithm: JwsAlgorithm, key: JwsSigningKey): String
Validates the protected header and produces the three base64url compact-JWS segments. HS256 needs at least 32 key bytes; ES256 uses the JWS fixed-width signature encoding.
parameter payload
source · line 87public
payload: List<Byte>
parameter key
source · line 87public
key: JwsSigningKey
parameter protectedHeader
source · line 87public
protectedHeader: String
parameter algorithm
source · line 87public
algorithm: JwsAlgorithm