Java Authenticator getRequestingSite() MethodThe getRequestingSite() method of Authenticator class is used to get the InetAddress of the site requesting for the authorization, or null if not available. Syntax:Parameter:No parameter is passed. Return:The InetAddress of the site requesting for authorization, or null if it's not available. Throw:Does not throw an Exception Example 1Test it NowOutput: Port info ::-1 Site:null //source code of https://www.javatpoint.com is printed. Example 2Test it NowOutput: Site info :null Protocol:https <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> //Source code of https://www.javatpoint is printed. Next TopicgetRequestingURL() 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