Example usage for javax.mail Session requestPasswordAuthentication

List of usage examples for javax.mail Session requestPasswordAuthentication

Introduction

In this page you can find the example usage for javax.mail Session requestPasswordAuthentication.

Prototype

public PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol,
        String prompt, String defaultUserName) 

Source Link

Document

Call back to the application to get the needed user name and password.

Usage

From source file:ste.xtest.mail.FileTransport.java

public FileTransport(Session session, URLName urlname) {
    super(session, urlname);
    auth = session.requestPasswordAuthentication(null, 0, "file:", "", "");
}