blob: 23558f0f947650abeb4c8b355adcf1b3cceaef95 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Wed Jun 15 18:09:19 CEST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
NTLMUtilities (Apache MINA 2.0.4 API Documentation)
</TITLE>
<META NAME="date" CONTENT="2011-06-15">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="NTLMUtilities (Apache MINA 2.0.4 API Documentation)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NTLMUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMResponses.html" title="class in org.apache.mina.proxy.handlers.http.ntlm"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../../index.html?org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NTLMUtilities.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.mina.proxy.handlers.http.ntlm</FONT>
<BR>
Class NTLMUtilities</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.mina.proxy.handlers.http.ntlm.NTLMUtilities</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html" title="interface in org.apache.mina.proxy.handlers.http.ntlm">NTLMConstants</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>NTLMUtilities</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html" title="interface in org.apache.mina.proxy.handlers.http.ntlm">NTLMConstants</A></DL>
</PRE>
<P>
NTLMUtilities.java - NTLM functions used for authentication and unit testing.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>MINA 2.0.0-M3</DD>
<DT><B>Author:</B></DT>
<DD><a href="http://mina.apache.org">Apache MINA Project</a></DD>
</DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.mina.proxy.handlers.http.ntlm.NTLMConstants"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface org.apache.mina.proxy.handlers.http.ntlm.<A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html" title="interface in org.apache.mina.proxy.handlers.http.ntlm">NTLMConstants</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#DEFAULT_FLAGS">DEFAULT_FLAGS</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#DEFAULT_OS_VERSION">DEFAULT_OS_VERSION</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_128_BIT_ENCRYPTION">FLAG_NEGOTIATE_128_BIT_ENCRYPTION</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_56_BIT_ENCRYPTION">FLAG_NEGOTIATE_56_BIT_ENCRYPTION</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_ALWAYS_SIGN">FLAG_NEGOTIATE_ALWAYS_SIGN</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_ANONYMOUS">FLAG_NEGOTIATE_ANONYMOUS</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_DATAGRAM_STYLE">FLAG_NEGOTIATE_DATAGRAM_STYLE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_DOMAIN_SUPPLIED">FLAG_NEGOTIATE_DOMAIN_SUPPLIED</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_KEY_EXCHANGE">FLAG_NEGOTIATE_KEY_EXCHANGE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_LAN_MANAGER_KEY">FLAG_NEGOTIATE_LAN_MANAGER_KEY</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_LOCAL_CALL">FLAG_NEGOTIATE_LOCAL_CALL</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_NTLM">FLAG_NEGOTIATE_NTLM</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_NTLM2">FLAG_NEGOTIATE_NTLM2</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_OEM">FLAG_NEGOTIATE_OEM</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_SEAL">FLAG_NEGOTIATE_SEAL</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_SIGN">FLAG_NEGOTIATE_SIGN</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_TARGET_INFO">FLAG_NEGOTIATE_TARGET_INFO</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_UNICODE">FLAG_NEGOTIATE_UNICODE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_NEGOTIATE_WORKSTATION_SUPPLIED">FLAG_NEGOTIATE_WORKSTATION_SUPPLIED</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_REQUEST_SERVER_AUTH_REALM">FLAG_REQUEST_SERVER_AUTH_REALM</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_TARGET_TYPE_DOMAIN">FLAG_TARGET_TYPE_DOMAIN</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_TARGET_TYPE_SERVER">FLAG_TARGET_TYPE_SERVER</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_TARGET_TYPE_SHARE">FLAG_TARGET_TYPE_SHARE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_1">FLAG_UNIDENTIFIED_1</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_10">FLAG_UNIDENTIFIED_10</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_11">FLAG_UNIDENTIFIED_11</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_2">FLAG_UNIDENTIFIED_2</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_3">FLAG_UNIDENTIFIED_3</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_4">FLAG_UNIDENTIFIED_4</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_5">FLAG_UNIDENTIFIED_5</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_6">FLAG_UNIDENTIFIED_6</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_7">FLAG_UNIDENTIFIED_7</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_8">FLAG_UNIDENTIFIED_8</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#FLAG_UNIDENTIFIED_9">FLAG_UNIDENTIFIED_9</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#MESSAGE_TYPE_1">MESSAGE_TYPE_1</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#MESSAGE_TYPE_2">MESSAGE_TYPE_2</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#MESSAGE_TYPE_3">MESSAGE_TYPE_3</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#NTLM_SIGNATURE">NTLM_SIGNATURE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_DNS_DOMAIN_NAME_TYPE">TARGET_INFORMATION_SUBBLOCK_DNS_DOMAIN_NAME_TYPE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_DOMAIN_TYPE">TARGET_INFORMATION_SUBBLOCK_DOMAIN_TYPE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_FQDNS_HOSTNAME_TYPE">TARGET_INFORMATION_SUBBLOCK_FQDNS_HOSTNAME_TYPE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_PARENT_DNS_DOMAIN_NAME_TYPE">TARGET_INFORMATION_SUBBLOCK_PARENT_DNS_DOMAIN_NAME_TYPE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_SERVER_TYPE">TARGET_INFORMATION_SUBBLOCK_SERVER_TYPE</A>, <A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMConstants.html#TARGET_INFORMATION_SUBBLOCK_TERMINATOR_TYPE">TARGET_INFORMATION_SUBBLOCK_TERMINATOR_TYPE</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#NTLMUtilities()">NTLMUtilities</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#createType1Message(java.lang.String, java.lang.String, java.lang.Integer, byte[])">createType1Message</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;workStation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;domain,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;customFlags,
byte[]&nbsp;osVersion)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see http://davenport.sourceforge.net/ntlm.html#theType1Message</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#createType3Message(java.lang.String, java.lang.String, byte[], java.lang.String, java.lang.String, java.lang.Integer, byte[])">createType3Message</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;user,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password,
byte[]&nbsp;challenge,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;target,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;workstation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;serverFlags,
byte[]&nbsp;osVersion)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#extractChallengeFromType2Message(byte[])">extractChallengeFromType2Message</A></B>(byte[]&nbsp;msg)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extracts the NTLM challenge from the type 2 message as an 8 byte array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#extractFlagsFromType2Message(byte[])">extractFlagsFromType2Message</A></B>(byte[]&nbsp;msg)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extracts the NTLM flags from the type 2 message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#extractTargetInfoFromType2Message(byte[], java.lang.Integer)">extractTargetInfoFromType2Message</A></B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extracts the target information block from the type 2 message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#extractTargetNameFromType2Message(byte[], java.lang.Integer)">extractTargetNameFromType2Message</A></B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extracts the target name from the type 2 message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#getOsVersion()">getOsVersion</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tries to return a valid OS version on Windows systems.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#printTargetInformationBlockFromType2Message(byte[], java.lang.Integer, java.io.PrintWriter)">printTargetInformationBlockFromType2Message</A></B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A>&nbsp;out)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints to the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io"><CODE>PrintWriter</CODE></A> the target information block extracted
from the type 2 message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#readSecurityBufferTarget(byte[], int)">readSecurityBufferTarget</A></B>(byte[]&nbsp;msg,
int&nbsp;securityBufferOffset)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the byte array described by the security buffer stored at the
<code>securityBufferOffset</code> offset.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#writeOSVersion(byte, byte, short, byte[], int)">writeOSVersion</A></B>(byte&nbsp;majorVersion,
byte&nbsp;minorVersion,
short&nbsp;buildNumber,
byte[]&nbsp;b,
int&nbsp;offset)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the Windows OS version passed in as three byte values
(majorVersion.minorVersion.buildNumber) to the given byte array
at <code>offset</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#writeSecurityBuffer(short, int)">writeSecurityBuffer</A></B>(short&nbsp;length,
int&nbsp;bufferOffset)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#writeSecurityBuffer(short, short, int, byte[], int)">writeSecurityBuffer</A></B>(short&nbsp;length,
short&nbsp;allocated,
int&nbsp;bufferOffset,
byte[]&nbsp;b,
int&nbsp;offset)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a security buffer to the given array <code>b</code> at offset
<code>offset</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#writeSecurityBufferAndUpdatePointer(java.io.ByteArrayOutputStream, short, int)">writeSecurityBufferAndUpdatePointer</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io">ByteArrayOutputStream</A>&nbsp;baos,
short&nbsp;len,
int&nbsp;pointer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a security buffer and returns the pointer of the position
where to write the next security buffer.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="NTLMUtilities()"><!-- --></A><H3>
NTLMUtilities</H3>
<PRE>
public <B>NTLMUtilities</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="writeSecurityBuffer(short, int)"><!-- --></A><H3>
writeSecurityBuffer</H3>
<PRE>
public static final byte[] <B>writeSecurityBuffer</B>(short&nbsp;length,
int&nbsp;bufferOffset)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html#writeSecurityBuffer(short, short, int, byte[], int)"><CODE>writeSecurityBuffer(short, short, int, byte[], int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="writeSecurityBuffer(short, short, int, byte[], int)"><!-- --></A><H3>
writeSecurityBuffer</H3>
<PRE>
public static final void <B>writeSecurityBuffer</B>(short&nbsp;length,
short&nbsp;allocated,
int&nbsp;bufferOffset,
byte[]&nbsp;b,
int&nbsp;offset)</PRE>
<DL>
<DD>Writes a security buffer to the given array <code>b</code> at offset
<code>offset</code>. A security buffer defines a pointer to an area
in the data that defines some data with a variable length. This allows
to have a semi-fixed length header thus making a little bit easier
the decoding process in the NTLM protocol.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>length</CODE> - the length of the security buffer<DD><CODE>allocated</CODE> - the allocated space for the security buffer (should be
greater or equal to <code>length</code><DD><CODE>bufferOffset</CODE> - the offset from the main array where the currently
defined security buffer will be written<DD><CODE>b</CODE> - the buffer in which we write the security buffer<DD><CODE>offset</CODE> - the offset at which to write to the b buffer</DL>
</DD>
</DL>
<HR>
<A NAME="writeOSVersion(byte, byte, short, byte[], int)"><!-- --></A><H3>
writeOSVersion</H3>
<PRE>
public static final void <B>writeOSVersion</B>(byte&nbsp;majorVersion,
byte&nbsp;minorVersion,
short&nbsp;buildNumber,
byte[]&nbsp;b,
int&nbsp;offset)</PRE>
<DL>
<DD>Writes the Windows OS version passed in as three byte values
(majorVersion.minorVersion.buildNumber) to the given byte array
at <code>offset</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>majorVersion</CODE> - the major version number<DD><CODE>minorVersion</CODE> - the minor version number<DD><CODE>buildNumber</CODE> - the build number<DD><CODE>b</CODE> - the target byte array<DD><CODE>offset</CODE> - the offset at which to write in the array</DL>
</DD>
</DL>
<HR>
<A NAME="getOsVersion()"><!-- --></A><H3>
getOsVersion</H3>
<PRE>
public static final byte[] <B>getOsVersion</B>()</PRE>
<DL>
<DD>Tries to return a valid OS version on Windows systems. If it fails to
do so or if we're running on another OS then a fake Windows XP OS
version is returned because the protocol uses it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a NTLM OS version byte buffer</DL>
</DD>
</DL>
<HR>
<A NAME="createType1Message(java.lang.String, java.lang.String, java.lang.Integer, byte[])"><!-- --></A><H3>
createType1Message</H3>
<PRE>
public static final byte[] <B>createType1Message</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;workStation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;domain,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;customFlags,
byte[]&nbsp;osVersion)</PRE>
<DL>
<DD>see http://davenport.sourceforge.net/ntlm.html#theType1Message
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>workStation</CODE> - the workstation name<DD><CODE>domain</CODE> - the domain name<DD><CODE>customFlags</CODE> - custom flags, if null then
<code>NTLMConstants.DEFAULT_CONSTANTS</code> is used<DD><CODE>osVersion</CODE> - the os version of the client, if null then
<code>NTLMConstants.DEFAULT_OS_VERSION</code> is used
<DT><B>Returns:</B><DD>the type 1 message</DL>
</DD>
</DL>
<HR>
<A NAME="writeSecurityBufferAndUpdatePointer(java.io.ByteArrayOutputStream, short, int)"><!-- --></A><H3>
writeSecurityBufferAndUpdatePointer</H3>
<PRE>
public static final int <B>writeSecurityBufferAndUpdatePointer</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io">ByteArrayOutputStream</A>&nbsp;baos,
short&nbsp;len,
int&nbsp;pointer)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Writes a security buffer and returns the pointer of the position
where to write the next security buffer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>baos</CODE> - the stream where the security buffer is written<DD><CODE>len</CODE> - the length of the security buffer<DD><CODE>pointer</CODE> - the position where the security buffer can be written
<DT><B>Returns:</B><DD>the position where the next security buffer will be written
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - if writing to the ByteArrayOutputStream fails</DL>
</DD>
</DL>
<HR>
<A NAME="extractChallengeFromType2Message(byte[])"><!-- --></A><H3>
extractChallengeFromType2Message</H3>
<PRE>
public static final byte[] <B>extractChallengeFromType2Message</B>(byte[]&nbsp;msg)</PRE>
<DL>
<DD>Extracts the NTLM challenge from the type 2 message as an 8 byte array.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the type 2 message byte array
<DT><B>Returns:</B><DD>the challenge</DL>
</DD>
</DL>
<HR>
<A NAME="extractFlagsFromType2Message(byte[])"><!-- --></A><H3>
extractFlagsFromType2Message</H3>
<PRE>
public static final int <B>extractFlagsFromType2Message</B>(byte[]&nbsp;msg)</PRE>
<DL>
<DD>Extracts the NTLM flags from the type 2 message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the type 2 message byte array
<DT><B>Returns:</B><DD>the proxy flags as an int</DL>
</DD>
</DL>
<HR>
<A NAME="readSecurityBufferTarget(byte[], int)"><!-- --></A><H3>
readSecurityBufferTarget</H3>
<PRE>
public static final byte[] <B>readSecurityBufferTarget</B>(byte[]&nbsp;msg,
int&nbsp;securityBufferOffset)</PRE>
<DL>
<DD>Reads the byte array described by the security buffer stored at the
<code>securityBufferOffset</code> offset.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the message where to read the security buffer and it's value<DD><CODE>securityBufferOffset</CODE> - the offset at which to read the security buffer
<DT><B>Returns:</B><DD>a new byte array holding the data pointed by the security buffer</DL>
</DD>
</DL>
<HR>
<A NAME="extractTargetNameFromType2Message(byte[], java.lang.Integer)"><!-- --></A><H3>
extractTargetNameFromType2Message</H3>
<PRE>
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>extractTargetNameFromType2Message</B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></PRE>
<DL>
<DD>Extracts the target name from the type 2 message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the type 2 message byte array<DD><CODE>msgFlags</CODE> - the flags if null then flags are extracted from the
type 2 message
<DT><B>Returns:</B><DD>the target name
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - if unable to use the
needed UTF-16LE or ASCII charsets</DL>
</DD>
</DL>
<HR>
<A NAME="extractTargetInfoFromType2Message(byte[], java.lang.Integer)"><!-- --></A><H3>
extractTargetInfoFromType2Message</H3>
<PRE>
public static final byte[] <B>extractTargetInfoFromType2Message</B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags)</PRE>
<DL>
<DD>Extracts the target information block from the type 2 message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the type 2 message byte array<DD><CODE>msgFlags</CODE> - the flags if null then flags are extracted from the
type 2 message
<DT><B>Returns:</B><DD>the target info</DL>
</DD>
</DL>
<HR>
<A NAME="printTargetInformationBlockFromType2Message(byte[], java.lang.Integer, java.io.PrintWriter)"><!-- --></A><H3>
printTargetInformationBlockFromType2Message</H3>
<PRE>
public static final void <B>printTargetInformationBlockFromType2Message</B>(byte[]&nbsp;msg,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;msgFlags,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A>&nbsp;out)
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></PRE>
<DL>
<DD>Prints to the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io"><CODE>PrintWriter</CODE></A> the target information block extracted
from the type 2 message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the type 2 message<DD><CODE>msgFlags</CODE> - the flags if null then flags are extracted from the
type 2 message<DD><CODE>out</CODE> - the output target for the information
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - if unable to use the
needed UTF-16LE or ASCII charsets</DL>
</DD>
</DL>
<HR>
<A NAME="createType3Message(java.lang.String, java.lang.String, byte[], java.lang.String, java.lang.String, java.lang.Integer, byte[])"><!-- --></A><H3>
createType3Message</H3>
<PRE>
public static final byte[] <B>createType3Message</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;user,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password,
byte[]&nbsp;challenge,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;target,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;workstation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>&nbsp;serverFlags,
byte[]&nbsp;osVersion)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>user</CODE> - the user name<DD><CODE>password</CODE> - the user password<DD><CODE>challenge</CODE> - the challenge response<DD><CODE>target</CODE> - the target name<DD><CODE>workstation</CODE> - the client workstation's name<DD><CODE>serverFlags</CODE> - the flags set by the client<DD><CODE>osVersion</CODE> - the os version of the client
<DT><B>Returns:</B><DD>the type 3 message<DT><B>See Also:</B><DD><CODE>http://davenport.sourceforge.net/ntlm.html#theType3Message</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NTLMUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../../org/apache/mina/proxy/handlers/http/ntlm/NTLMResponses.html" title="class in org.apache.mina.proxy.handlers.http.ntlm"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../../index.html?org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NTLMUtilities.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2004-2011 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.
</BODY>
</HTML>