io.lsn.spring.auth.configuration.properties.SecurityProperties Maven / Gradle / Ivy
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;
}
}