Class JCIFSEngine

  • All Implemented Interfaces:
    org.apache.http.impl.auth.NTLMEngine

    public class JCIFSEngine
    extends Object
    implements org.apache.http.impl.auth.NTLMEngine
    Implementation of an NTLM Engine, which generates Type 1 and Type 3 messages for the NTML hand shake.
    Author:
    Sandra Mueller
    • Constructor Detail

      • JCIFSEngine

        public JCIFSEngine()
    • Method Detail

      • generateType1Msg

        public String generateType1Msg​(String domain,
                                       String workstation)
                                throws org.apache.http.impl.auth.NTLMEngineException
        Generates a Type 1 message of the NTLM protocol with the specified domain and workstation id and default flags.
        Specified by:
        generateType1Msg in interface org.apache.http.impl.auth.NTLMEngine
        Parameters:
        domain - Domain of the user
        workstation - Workstation id of the user
        Returns:
        NTLM message of Type 1
        Throws:
        org.apache.http.impl.auth.NTLMEngineException
      • generateType3Msg

        public String generateType3Msg​(String username,
                                       String password,
                                       String domain,
                                       String workstation,
                                       String challenge)
                                throws org.apache.http.impl.auth.NTLMEngineException
        Generates a Type 3 message of the NTLM protocol for the specified challenge with the specified user name and password as well as domain and workstation id.
        Specified by:
        generateType3Msg in interface org.apache.http.impl.auth.NTLMEngine
        Parameters:
        username - User name
        password - Password of the user
        domain - Domain of the user
        workstation - Workstation id of the user
        Returns:
        NTLM message of Type 3
        Throws:
        org.apache.http.impl.auth.NTLMEngineException