cn.signit.sdk.http
类 Authentication

java.lang.Object
  继承者 cn.signit.sdk.http.Authentication

public class Authentication
extends Object


构造方法摘要
Authentication()
           
Authentication(Authentication clone)
           
Authentication(String apiKey, String secretKey)
           
Authentication(String apiKey, String secretKey, TokenType authenticationType)
           
 
方法摘要
 void authenticate(HttpURLConnection httpConn, String url)
           
 String getAccessToken()
           
 TokenType getAccessTokenType()
           
 String getAppId()
           
 String getSecretKey()
           
 boolean hasAccessToken()
           
 boolean hasAccessTokenType()
           
 boolean hasAppId()
           
 boolean hasSecretKey()
           
 void setAccessToken(String accessToken)
           
 void setAccessTokenType(TokenType accessTokenType)
           
 Authentication setAppId(String appId)
           
 Authentication setSecretKey(String secretKey)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Authentication

public Authentication()

Authentication

public Authentication(String apiKey,
                      String secretKey)

Authentication

public Authentication(String apiKey,
                      String secretKey,
                      TokenType authenticationType)

Authentication

public Authentication(Authentication clone)
               throws SignitException
抛出:
SignitException
方法详细信息

getAppId

public String getAppId()

setAppId

public Authentication setAppId(String appId)

hasAppId

public boolean hasAppId()

getSecretKey

public String getSecretKey()

setSecretKey

public Authentication setSecretKey(String secretKey)

hasSecretKey

public boolean hasSecretKey()

getAccessToken

public String getAccessToken()

setAccessToken

public void setAccessToken(String accessToken)

getAccessTokenType

public TokenType getAccessTokenType()

setAccessTokenType

public void setAccessTokenType(TokenType accessTokenType)

hasAccessTokenType

public boolean hasAccessTokenType()

hasAccessToken

public boolean hasAccessToken()

authenticate

public void authenticate(HttpURLConnection httpConn,
                         String url)


Copyright © 2019. All rights reserved.