类 AuthRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.iothisk.model.AuthRequest
-
public class AuthRequest extends AbstractBceRequest
Represent the request for HISK Device authentication.
-
-
构造器概要
构造器 构造器 说明 AuthRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAuthCode()Get the device authentication codeStringgetExtra()Get the device extra message applied in authenticationvoidsetAuthCode(String authCode)Set the device authentication codevoidsetExtra(String extra)Set the device extra message applied in authenticationAbstractBceRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
setAuthCode
public void setAuthCode(String authCode)
Set the device authentication code- 参数:
authCode- device authentication code
-
getAuthCode
public String getAuthCode()
Get the device authentication code- 返回:
- device authentication code
-
setExtra
public void setExtra(String extra)
Set the device extra message applied in authentication- 参数:
extra- the device extra message applied in authentication
-
getExtra
public String getExtra()
Get the device extra message applied in authentication- 返回:
- get the extra message applied in authentication
-
withRequestCredentials
public AbstractBceRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- ActiveRequest with credentials.
-
-