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

Method verifyHs256

CodenameOne/src/com/codename1/security/Jwt.java:216–218  ·  view source on GitHub ↗
(byte[] secret)

Source from the content-addressed store, hash-verified

214 /// Verifies with a shared HMAC secret. The token's `alg` header is read
215 /// and must be one of the HS family.
216 public boolean verifyHs256(byte[] secret) {
217 return verifyHmac(HS256, secret);
218 }
219
220 /// HMAC verification with HS384.
221 public boolean verifyHs384(byte[] secret) {

Callers 4

runJwtHs256Method · 0.95
hs256_roundTripMethod · 0.95
hs256_referenceVectorMethod · 0.95
invoke8Method · 0.80

Calls 1

verifyHmacMethod · 0.95

Tested by 3

runJwtHs256Method · 0.76
hs256_roundTripMethod · 0.76
hs256_referenceVectorMethod · 0.76