Java Authenticator getRequestorType() MethodThe 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 1Test it NowOutput: Port info ::-1 Port info ::-1 RequestorType :null // Source code of https://www.javatpoint.com is printed. Example 2Test it NowOutput: RequestorType : null Protocol:https //source code of https://www.javatpoint.com is printed. Next TopicsetDefault() Method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India