com.github.shawven.security.oauth2.OAuth2Properties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security-oauth2-autoconfigure Show documentation
Show all versions of security-oauth2-autoconfigure Show documentation
OAuth2 for Spring Boot starter
package com.github.shawven.security.oauth2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import java.util.List;
@ConfigurationProperties("app.security.oauth2")
public class OAuth2Properties {
/**
* jwt、redis
*/
private String tokenStore = "jwt";
@NestedConfigurationProperty
private Oauth2JwtProperties jwt;
/**
* 客户端配置
*/
@NestedConfigurationProperty
private List clients;
public List getClients() {
return clients;
}
public void setClients(List clients) {
this.clients = clients;
}
public String getTokenStore() {
return tokenStore;
}
public void setTokenStore(String tokenStore) {
this.tokenStore = tokenStore;
}
public Oauth2JwtProperties getJwt() {
return jwt;
}
public void setJwt(Oauth2JwtProperties jwt) {
this.jwt = jwt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy