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

com.github.shawven.security.oauth2.OAuth2Properties Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version

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