com.dahuatech.icc.oauth.model.v202010.OauthConfigUserPwdInfo 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.oauth.profile.GrantType;
/**
* 用户密码模式配置信息
*/
public class OauthConfigUserPwdInfo extends OauthConfigBaseInfo{
/** 密码认证用户名 */
public String username;//登录平台的用户名,
/** 认证密码 明文 */
public String password;
/**
* 使用默认端口、默认协议构造
* @param host
* @param clientId
* @param clientSecret
*/
public OauthConfigUserPwdInfo(String host, String clientId, String clientSecret,String username,String password){
super(host,clientId,clientSecret,GrantType.password);
this.username = username;
this.password = password;
}
/**
* 使用指定端口、指定协议构造
* @param host
* @param clientId
* @param clientSecret
*/
public OauthConfigUserPwdInfo(String host, String clientId, String clientSecret,String username,String password,boolean isEnableHttpTest,String httpsPort,String httpPort){
super(host,clientId,clientSecret,GrantType.password,isEnableHttpTest,httpsPort,httpPort);
this.username = username;
this.password = password;
}
public OauthConfigUserPwdInfo(String host, String clientId, String clientSecret,String username,String password,boolean isEnableHttpTest,String port){
super(host,clientId,clientSecret,GrantType.password,isEnableHttpTest,port);
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}