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

Method getAlgorithm

CodenameOne/src/com/codename1/security/Jwt.java:264–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262
263 /// Returns the `alg` field from the JWT header (e.g. "HS256").
264 public String getAlgorithm() {
265 Object v = header.get("alg");
266 return v == null ? null : v.toString();
267 }
268
269 /// Returns the parsed header as an unmodifiable view into the original
270 /// map. Mutating it has undefined behaviour.

Callers 7

verifyHmacMethod · 0.95
verifyMethod · 0.95
runJwtHs256Method · 0.95
runJwtRs256Method · 0.95
jwtRsRoundTripMethod · 0.95
hs256_roundTripMethod · 0.95

Calls 2

toStringMethod · 0.95
getMethod · 0.65

Tested by 5

runJwtHs256Method · 0.76
runJwtRs256Method · 0.76
jwtRsRoundTripMethod · 0.76
hs256_roundTripMethod · 0.76