Java Authenticator getRequestorType() 方法

2025 年 3 月 20 日 | 阅读 2 分钟

Authenticator 类的 getRequestorType() 方法返回请求者是代理(Proxy)还是服务器(Server)。

语法

参数

不传递任何参数。

返回

请求者的身份验证类型

Throw

不抛出异常。

示例 1

输出

Port info ::-1
Port info ::-1
RequestorType :null
// Source code of TpointTech is printed. 

示例 2

输出

RequestorType : null
Protocol:https
//source code of TpointTech is printed. 
 
下一个主题setDefault() 方法