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

be.looorent.security.jwt.HttpHeaderProperties Maven / Gradle / Ivy

package be.looorent.security.jwt;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Cors Properties read from http.headers.*.
 * Used to configure a Cors Filter.
 * @author Lorent Lempereur - [email protected]
 */
@Component
@ConfigurationProperties(prefix = "http.headers")
class HttpHeaderProperties {

    private List allowedMethods = new ArrayList<>();
    private List allowedOrigins = new ArrayList<>();
    private List allowedHeaders = new ArrayList<>();
    private long cacheMaxAge;

    public List getAllowedMethods() {
        return allowedMethods;
    }

    public List getAllowedOrigins() {
        return allowedOrigins;
    }

    public List getAllowedHeaders() {
        return allowedHeaders;
    }

    public long getCacheMaxAge() {
        return cacheMaxAge;
    }

    public void setCacheMaxAge(long cacheMaxAge) {
        this.cacheMaxAge = cacheMaxAge;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy