com.auth0.jwt.impl.ClaimsHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt Show documentation
Show all versions of java-jwt Show documentation
Java implementation of JSON Web Token (JWT)
The newest version!
package com.auth0.jwt.impl;
import java.util.HashMap;
import java.util.Map;
/**
* The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
*/
public abstract class ClaimsHolder {
private Map claims;
protected ClaimsHolder(Map claims) {
this.claims = claims == null ? new HashMap<>() : claims;
}
Map getClaims() {
return claims;
}
}