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

com.dahuatech.icc.oauth.model.v202010.OauthConfigClientInfo Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.oauth.model.v202010;

import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.profile.GrantType;
import com.dahuatech.icc.util.StringUtils;

/**
 * 客户端鉴权模式配置信息
 */
public class OauthConfigClientInfo extends OauthConfigBaseInfo{
    private final String defaultUserId = "1";
    /**客户端鉴权默认用户id 1*/
    protected String clientOauthuserId = defaultUserId;

    /**
     * 使用默认端口、默认协议、默认用户构造
     * @param host
     * @param clientId
     * @param clientSecret
     */
    public OauthConfigClientInfo(String host,String clientId,String clientSecret) throws ClientException {
        throw new ClientException("GrantType [client_credentials] not support");
    }

    /**
     * 使用默认端口、默认协议,指定用户构造
     * @param host
     * @param clientId
     * @param clientSecret
     */
    public OauthConfigClientInfo(String host,String clientId,String clientSecret,String clientOauthuserId) throws ClientException {
        throw new ClientException("GrantType [client_credentials] not support");
    }

    /**
     * 使用指定端口、指定协议、默认用户构造
     * @param host
     * @param clientId
     * @param clientSecret
     */
    public OauthConfigClientInfo(String host,String clientId,String clientSecret,boolean isEnableHttpTest,String httpsPort,String httpPort) throws ClientException {
        throw new ClientException("GrantType [client_credentials] not support");
    }

    /**
     * 使用指定端口、指定协议、指定用户构造
     * @param host
     * @param clientId
     * @param clientSecret
     */
    public OauthConfigClientInfo(String host,String clientId,String clientSecret,String clientOauthuserId,boolean isEnableHttpTest,String httpsPort,String httpPort) throws ClientException {
        throw new ClientException("GrantType [client_credentials] not support");
    }

    public String getClientOauthuserId() {
        return clientOauthuserId;
    }

    public void setClientOauthuserId(String clientOauthuserId) {
        this.clientOauthuserId = clientOauthuserId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy