io.scalecube.security.tokens.jwt.JwtToken Maven / Gradle / Ivy
package io.scalecube.security.tokens.jwt;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class JwtToken {
private final Map header;
private final Map body;
public JwtToken(Map header, Map body) {
this.header = Collections.unmodifiableMap(new HashMap<>(header));
this.body = Collections.unmodifiableMap(new HashMap<>(body));
}
public Map header() {
return header;
}
public Map body() {
return body;
}
}