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

org.entur.jwt.spring.auth0.properties.JwtProperties Maven / Gradle / Ivy

package org.entur.jwt.spring.auth0.properties;

import org.entur.jwt.verifier.config.JwkProperties;
import org.entur.jwt.verifier.config.JwtClaimsProperties;
import org.entur.jwt.verifier.config.JwtTenantProperties;

import java.util.HashMap;
import java.util.Map;

public class JwtProperties {

    private boolean enabled = true;

    private MdcProperties mdc = new MdcProperties();

    private Map tenants = new HashMap<>();

    /**
     * Tenant filter (on tenant name). This is a useful feature when configuration
     * is shared across multiple applications, i.e. like a common config-map in
     * Kubernetes.
     */
    private TenantFilter filter = new TenantFilter(); //

    private JwkProperties jwk = new JwkProperties();

    private JwtClaimsProperties claims = new JwtClaimsProperties();

    public Map getTenants() {
        return tenants;
    }

    public void setTenants(Map tenants) {
        this.tenants = tenants;
    }

    public JwkProperties getJwk() {
        return jwk;
    }

    public void setJwk(JwkProperties jwk) {
        this.jwk = jwk;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public MdcProperties getMdc() {
        return mdc;
    }

    public void setMdc(MdcProperties mdc) {
        this.mdc = mdc;
    }

    public TenantFilter getFilter() {
        return filter;
    }

    public void setFilter(TenantFilter filter) {
        this.filter = filter;
    }

    public JwtClaimsProperties getClaims() {
        return claims;
    }

    public void setClaims(JwtClaimsProperties claims) {
        this.claims = claims;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy