com.dahuatech.icc.oauth.model.v202010.OauthConfigClientInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-oauth Show documentation
Show all versions of java-sdk-oauth Show documentation
Dahua ICC Open API SDK for Java
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;
}
}