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

io.lsn.spring.auth.configuration.properties.SecurityProperties Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package io.lsn.spring.auth.configuration.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

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

/**
 * @author Patryk Szlagowski 
 */
@ConfigurationProperties(prefix = "io.lsn.spring.security")
public class SecurityProperties {

    public enum TransportMethod {
        HEADER,
        COOKIE
    }

    private TokenProperties token = new TokenProperties();
    private List excluded = new ArrayList<>();
    private TransportMethod transportMethod = TransportMethod.HEADER;

    public TokenProperties getToken() {
        return token;
    }

    public void setToken(TokenProperties token) {
        this.token = token;
    }

    public List getExcluded() {
        return excluded;
    }

    public void setExcluded(List excluded) {
        this.excluded = excluded;
    }

    public TransportMethod getTransportMethod() {
        return transportMethod;
    }

    public void setTransportMethod(TransportMethod transportMethod) {
        this.transportMethod = transportMethod;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy