Class HttpAuthCustom
- java.lang.Object
-
- com.gitee.apanlh.util.net.http.auth.HttpAuth
-
- com.gitee.apanlh.util.net.http.auth.HttpAuthCustom
-
public class HttpAuthCustom extends HttpAuth
基础认证形式,Key-Value形式
自定义认证- Author:
- Pan
-
-
Constructor Summary
Constructors Constructor Description HttpAuthCustom()默认构造函数HttpAuthCustom(String key, String value)构造函数-初始化键值
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpAuthCustomcreate(String key, String value)创建APIKeyStringgetKey()获取键StringgetValue()获取值voidsetKey(String key)设置键voidsetValue(String value)设置值-
Methods inherited from class com.gitee.apanlh.util.net.http.auth.HttpAuth
basic, bearer, custom, getHeaderKey, getHeaderValue, setHeader, setHeaderKey, setHeaderValue
-
-
-
-
Method Detail
-
getKey
public String getKey()
获取键- Returns:
- String
-
getValue
public String getValue()
获取值- Returns:
- String
-
setKey
public void setKey(String key)
设置键- Parameters:
key- 键
-
setValue
public void setValue(String value)
设置值- Parameters:
value- 值
-
create
public static HttpAuthCustom create(String key, String value)
创建APIKey- Parameters:
key- 键value- 值- Returns:
- ApiKey
-
-