Signs a JWT with whichever key the algorithm needs.
the claims
the JWS algorithm
the client secret, required for HS* and ignored otherwise
header, merged into the protected header, and certificateHeader, the use case whose setting decides x5c or x5u
header
certificateHeader
x5c
x5u
the compact JWS
Error for HS* without a secret, or an algorithm this realm holds no key for
Signs a JWT with whichever key the algorithm needs.