Module jakarta.mail

Class Ntlm


  • public class Ntlm
    extends java.lang.Object
    NTLMAuthentication:
    Author:
    Michael McMahon, Bill Shannon (adapted for Jakarta Mail)
    • Constructor Summary

      Constructors 
      Constructor Description
      Ntlm​(java.lang.String ntdomain, java.lang.String hostname, java.lang.String username, java.lang.String password, MailLogger logger)
      Create an NTLM authenticator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateType1Msg​(int flags)  
      java.lang.String generateType1Msg​(int flags, boolean v2)  
      java.lang.String generateType3Msg​(java.lang.String type2msg)  
      • Methods inherited from class java.lang.Object

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

      • Ntlm

        public Ntlm​(java.lang.String ntdomain,
                    java.lang.String hostname,
                    java.lang.String username,
                    java.lang.String password,
                    MailLogger logger)
        Create an NTLM authenticator. Username may be specified as domain\\username in the Authenticator. If this notation is not used, then the domain will be taken from the ntdomain parameter.
        Parameters:
        ntdomain - the NT domain
        hostname - the host name
        username - the user name
        password - the password
        logger - the MailLogger
    • Method Detail

      • generateType1Msg

        public java.lang.String generateType1Msg​(int flags)
      • generateType1Msg

        public java.lang.String generateType1Msg​(int flags,
                                                 boolean v2)
      • generateType3Msg

        public java.lang.String generateType3Msg​(java.lang.String type2msg)