View RSS Feed

Java Mail

  1. Java Mail Authenticator

    by , 04-25-2012 at 11:09 PM
    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. ...