package com.ygtx.common.config;

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

/**
 * ICE SSO配置属性
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "ice")
public class IceSsoProperties
{
    /**
     * SSO配置
     */
    private Sso sso = new Sso();
    
    /**
     * 超时时间（秒）
     */
    private int timeout = 30;

    public Sso getSso()
    {
        return sso;
    }

    public void setSso(Sso sso)
    {
        this.sso = sso;
    }

    public int getTimeout()
    {
        return timeout;
    }

    public void setTimeout(int timeout)
    {
        this.timeout = timeout;
    }

    public static class Sso
    {
        /**
         * ICE SSO接口地址
         */
        private String url = "https://app.ceic.com/webservice/ssologin";
        
        /**
         * 应用ID
         */
        private String appId;

        public String getUrl()
        {
            return url;
        }

        public void setUrl(String url)
        {
            this.url = url;
        }

        public String getAppId()
        {
            return appId;
        }

        public void setAppId(String appId)
        {
            this.appId = appId;
        }
    }
}