Class HttpAuthCustom


  • public class HttpAuthCustom
    extends HttpAuth
    基础认证形式,Key-Value形式
    自定义认证
    Author:
    Pan
    • Constructor Detail

      • HttpAuthCustom

        public HttpAuthCustom()
        默认构造函数
      • HttpAuthCustom

        public HttpAuthCustom​(String key,
                              String value)
        构造函数-初始化键值
        Parameters:
        key - 键
        value - 值
    • 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