Class MotionDetection.Auth

  • Enclosing class:
    MotionDetection

    private class MotionDetection.Auth
    extends javax.mail.Authenticator
    An authenticator class used to obtain user name a password for sending email.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Properties props
      Properties containing the mail.user and mail.passwd properties
    • Constructor Summary

      Constructors 
      Constructor Description
      Auth​(java.util.Properties props)
      Create a new Auth object with the specified properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.mail.PasswordAuthentication getPasswordAuthentication()
      Gets a PasswordAuthentication object.
      • Methods inherited from class javax.mail.Authenticator

        getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
      • Methods inherited from class java.lang.Object

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

      • props

        private final java.util.Properties props
        Properties containing the mail.user and mail.passwd properties
    • Constructor Detail

      • Auth

        public Auth​(java.util.Properties props)
        Create a new Auth object with the specified properties.
        Parameters:
        props - the Properties that contain the mail.user and mail.passwd properties
    • Method Detail

      • getPasswordAuthentication

        public javax.mail.PasswordAuthentication getPasswordAuthentication()
        Gets a PasswordAuthentication object.
        Overrides:
        getPasswordAuthentication in class javax.mail.Authenticator
        Returns:
        a PasswordAuthentication object that returns the user name and the de-obfuscated password