Class NtlmMessage

    • Field Detail

      • NTLMSSP_SIGNATURE

        protected static final byte[] NTLMSSP_SIGNATURE
        The NTLMSSP "preamble".
    • Constructor Detail

      • NtlmMessage

        public NtlmMessage()
    • Method Detail

      • getFlags

        public int getFlags()
        Returns the flags currently in use for this message.
        Returns:
        An int containing the flags in use for this message.
      • setFlags

        public void setFlags​(int flags)
        Sets the flags for this message.
        Parameters:
        flags - The flags for this message.
      • getFlag

        public boolean getFlag​(int flag)
        Returns the status of the specified flag.
        Parameters:
        flag - The flag to test (i.e., NTLMSSP_NEGOTIATE_OEM).
        Returns:
        A boolean indicating whether the flag is set.
      • setFlag

        public void setFlag​(int flag,
                            boolean value)
        Sets or clears the specified flag.
        Parameters:
        flag - The flag to set/clear (i.e., NTLMSSP_NEGOTIATE_OEM).
        value - Indicates whether to set (true) or clear (false) the specified flag.
      • toByteArray

        public abstract byte[] toByteArray()
        Returns the raw byte representation of this message.
        Returns:
        A byte[] containing the raw message material.