Java Authenticator getPasswordAuthentication() MethodThe getPasswordAuthentication() method of Authenticator class is called when password authorization is needed. The subclasses must override the default implementation, of getPasswordAuthentication() which returns null. Syntax:Parameter:No parameter is passed. Return:The Password Authentication collected from the user, or null if none is provided. Throw:Does not throw any Exception Example 1Test it NowOutput: password validating... Example 2Test it NowOutput: null null Next TopicgetRequestingHost() 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