Java Authenticator getRequestorType() Method

The getRequestorType() method of Authenticator class returns whether the requester is a Proxy or a Server.

Syntax:

Parameter:

No parameter is passed.

Return:

the authentication type of the requestor

Throw:

Does not throw the exception.

Example 1

Test it Now

Output:

Port info ::-1
Port info ::-1
RequestorType :null
// Source code of https://www.javatpoint.com is printed. 

Example 2

Test it Now

Output:

RequestorType : null
Protocol:https
//source code of https://www.javatpoint.com is printed. 





Latest Courses