import static com.auth0.jwtdecodejava.impl.ClaimImpl.extractClaim;
import static com.auth0.jwtdecodejava.impl.PublicClaims.*;
class HeaderImpl implements Header {
private final Map<String, JsonNode> tree;
HeaderImpl(Map<String, JsonNode> tree) {
<BUG>this.tree = tree;
}</BUG>
@Override
public String getAlgorithm() {
return extractClaim(ALGORITHM, tree).asString();

import static com.auth0.jwtdecodejava.impl.ClaimImpl.extractClaim;
import static com.auth0.jwtdecodejava.impl.PublicClaims.*;
class HeaderImpl implements Header {
private final Map<String, JsonNode> tree;
HeaderImpl(Map<String, JsonNode> tree) {
this.tree = Collections.unmodifiableMap(tree);
}
@Override
public String getAlgorithm() {
return extractClaim(ALGORITHM, tree).asString();
