Benefit of the Authenticator class might be taken by the Mail APIs, just like java.net packages. Protected resources are being accessed by this class by using Username/Password. This resource might be simple file, server or anything else. In case of Java Mail, server would be the resource. In essence, Authenticator object gets passed to getInstance()/getDefaultInstance() method as a parameter which controls the Session object’s security aspect. Authenticator could be used by 2 methods. ...
License4J 4.0
Yesterday, 12:23 AM in Java Software