MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / signHs256

Method signHs256

CodenameOne/src/com/codename1/security/Jwt.java:108–110  ·  view source on GitHub ↗
(Map<String, Object> claims, byte[] secret)

Source from the content-addressed store, hash-verified

106
107 /// Signs `claims` with HS256 and returns the encoded token.
108 public static String signHs256(Map<String, Object> claims, byte[] secret) {
109 return sign(claims, secret, HS256);
110 }
111
112 /// Signs `claims` with HS384 and returns the encoded token.
113 public static String signHs384(Map<String, Object> claims, byte[] secret) {

Callers 3

runJwtHs256Method · 0.95
hs256_roundTripMethod · 0.95
invokeStatic5Method · 0.80

Calls 1

signMethod · 0.95

Tested by 2

runJwtHs256Method · 0.76
hs256_roundTripMethod · 0.76