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

com.dahuatech.icc.oauth.model.v202010.OauthCheckTokenRequest 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.hutool.http.Method;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.constant.OauthConstant;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;

/**
 * 校验token,无需鉴权
 *
 * @author 232676
 * @since 1.0.0 2020-10-24 20:59:11
 */
public class OauthCheckTokenRequest extends AbstractIccRequest {

  private String token;

  public OauthCheckTokenRequest() throws ClientException {
    super(OauthConstant.url(OauthConstant.OAUTH_URL_CHECK_TOKEN_POST), Method.POST, Boolean.FALSE);
  }

  @Override
  public Class getResponseClass() {
    return OauthCheckTokenResponse.class;
  }

  public String getToken() {
    return token;
  }

  public void setToken(String token) {
    this.token = token;
    httpRequest.form("token", token);
  }

    public void businessValid() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy