All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.auth0.jwt.impl.ClaimsHolder Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy