protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(smtpUsername, smtpPassword); } };
protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }
/** * Return new {@link PasswordAuthentication} for given username and password. * * @return {@link PasswordAuthentication} */ @Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(this.user, this.pass); }
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(this.user, this.pass); }
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(userName, password); } };
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(userName, password); } };
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(name, password); }
@Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(this.user, this.password); } }
protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } });
protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } });
@Override public PasswordAuthentication getPasswordAuthentication() { String username = properties.getProperty("mail.smtp.user"), password = properties.getProperty("mail.smtp.password"); return new PasswordAuthentication(username, password); } }) : Session.getInstance(properties); // without auth
@Override public PasswordAuthentication getPasswordAuthentication() { String username = properties.getProperty("mail.smtp.user"), password = properties.getProperty("mail.smtp.password"); return new PasswordAuthentication(username, password); } }) : Session.getInstance(properties); // without auth
@Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(creds.getFrom(), creds.getPassword()); } });
protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(mailInfo.getUsername(), mailInfo.getPassword()); } };
private void configure() { String protocol = metaData.getTransportProtocol(); if (protocol == null) { protocol = metaData.getStoreProtocol(); } if (protocol == null) { protocol = "smtp"; } properties.put(getHostKey(protocol), metaData.getHost()); if (metaData.getFrom() != null) { properties.put(getPropKey(protocol, "from"), metaData.getFrom()); } if (metaData.getProperties() != null) { for (PropertyMetaData prop : metaData.getProperties()) { properties.put(prop.getKey(), prop.getValue()); } } if (metaData.getUser() != null) { authenticator = new PasswordAuthentication(metaData.getUser(), metaData.getPassword()); } }
@Override protected javax.mail.PasswordAuthentication getPasswordAuthentication() { String protocol = getRequestingProtocol(); Credentials c = null; if (MailSubsystemModel.SMTP.equals(protocol) && config.getSmtpServer() != null) { c = config.getSmtpServer().getCredentials(); } else if (MailSubsystemModel.POP3.equals(protocol) && config.getPop3Server() != null) { c = config.getPop3Server().getCredentials(); } else if (MailSubsystemModel.IMAP.equals(protocol) && config.getImapServer() != null) { c = config.getImapServer().getCredentials(); } if (c == null) { for (CustomServerConfig ssc : config.getCustomServers()) { if (ssc.getProtocol().equals(protocol)) { c = ssc.getCredentials(); break; } } } if (c != null && c.getPassword() != null) { return new javax.mail.PasswordAuthentication(c.getUsername(), c.getPassword()); } return null; } }
/** * Default constructor. * * @param userName user name to use when authentication is requested * @param password password to use when authentication is requested * @since 1.0 */ public DefaultAuthenticator(final String userName, final String password) { this.authentication = new PasswordAuthentication(userName, password); }
@Override protected final PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(getDefaultUserName(), pass); } }
@Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(getAdministrationService().getGlobalProperty("mail.user"), getAdministrationService().getGlobalProperty("mail.password")); } };