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

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

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy