()
| 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. |