Package javax.mail

Class PasswordAuthentication


  • public final class PasswordAuthentication
    extends java.lang.Object
    Container for a username/password combination.
    Version:
    1.4
    Author:
    Chris Burdess
    • Constructor Summary

      Constructors 
      Constructor Description
      PasswordAuthentication​(java.lang.String userName, java.lang.String password)
      Creates a new password authentication
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPassword()
      Returns the password.
      java.lang.String getUserName()
      Returns the username.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordAuthentication

        public PasswordAuthentication​(java.lang.String userName,
                                      java.lang.String password)
        Creates a new password authentication
        Parameters:
        userName - the username
        password - the password
    • Method Detail

      • getUserName

        public java.lang.String getUserName()
        Returns the username.
      • getPassword

        public java.lang.String getPassword()
        Returns the password.