class org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage extends java.lang.Object
{
protected byte[] messageContents;
protected int currentOutputPosition;
void <init>()
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents> = null;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = 0;
return;
}
void <init>(java.lang.String, int) throws org.apache.http.impl.auth.NTLMEngineException
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v, v;
java.nio.charset.Charset v;
int v;
java.lang.String v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: java.lang.String;
v := @parameter: int;
v = <org.apache.http.impl.auth.NTLMEngineImpl: java.nio.charset.Charset DEFAULT_CHARSET>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = staticinvoke <org.apache.commons.codec.binary.Base64: byte[] decodeBase64(byte[])>(v);
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void <init>(byte[],int)>(v, v);
return;
}
void <init>(byte[], int) throws org.apache.http.impl.auth.NTLMEngineException
{
byte[] v, v, v, v, v, v, v, v;
org.apache.http.impl.auth.NTLMEngineException v, v, v;
byte v, v;
int v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: byte[];
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents> = null;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = 0;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents> = v;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
v = lengthof v;
if v >= v goto label;
v = new org.apache.http.impl.auth.NTLMEngineException;
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineException: void <init>(java.lang.String)>("NTLM message decoding error - packet too short");
throw v;
label:
v = 0;
label:
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
v = lengthof v;
if v >= v goto label;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = v[v];
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
v = v[v];
if v == v goto label;
v = new org.apache.http.impl.auth.NTLMEngineException;
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineException: void <init>(java.lang.String)>("NTLM message expected - instead got unrecognized bytes");
throw v;
label:
v = v + 1;
goto label;
label:
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
v = lengthof v;
v = virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int readULong(int)>(v);
if v == v goto label;
v = new org.apache.http.impl.auth.NTLMEngineException;
v = staticinvoke <java.lang.Integer: java.lang.String toString(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.String toString(int)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("NTLM type \u message expected - instead got type \u0001");
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineException: void <init>(java.lang.String)>(v);
throw v;
label:
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = v;
return;
}
protected int getPreambleLength()
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v;
int v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
v = lengthof v;
v = v + 4;
return v;
}
protected int getMessageLength()
{
int v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
return v;
}
protected byte readByte(int) throws org.apache.http.impl.auth.NTLMEngineException
{
byte[] v, v;
org.apache.http.impl.auth.NTLMEngineException v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte v;
int v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
v = v + 1;
if v >= v goto label;
v = new org.apache.http.impl.auth.NTLMEngineException;
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineException: void <init>(java.lang.String)>("NTLM: Message too short");
throw v;
label:
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = v[v];
return v;
}
protected void readBytes(byte[], int) throws org.apache.http.impl.auth.NTLMEngineException
{
byte[] v, v, v;
org.apache.http.impl.auth.NTLMEngineException v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
int v, v, v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: byte[];
v := @parameter: int;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
v = lengthof v;
v = v + v;
if v >= v goto label;
v = new org.apache.http.impl.auth.NTLMEngineException;
specialinvoke v.<org.apache.http.impl.auth.NTLMEngineException: void <init>(java.lang.String)>("NTLM: Message too short");
throw v;
label:
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, v, v, 0, v);
return;
}
protected int readUShort(int) throws org.apache.http.impl.auth.NTLMEngineException
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v;
int v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = staticinvoke <org.apache.http.impl.auth.NTLMEngineImpl: int readUShort(byte[],int)>(v, v);
return v;
}
protected int readULong(int) throws org.apache.http.impl.auth.NTLMEngineException
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v;
int v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = staticinvoke <org.apache.http.impl.auth.NTLMEngineImpl: int readULong(byte[],int)>(v, v);
return v;
}
protected byte[] readSecurityBuffer(int) throws org.apache.http.impl.auth.NTLMEngineException
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v, v;
int v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = staticinvoke <org.apache.http.impl.auth.NTLMEngineImpl: byte[] readSecurityBuffer(byte[],int)>(v, v);
return v;
}
protected void prepareResponse(int, int)
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v, v;
int v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v := @parameter: int;
v = newarray (byte)[v];
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents> = v;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = 0;
v = <org.apache.http.impl.auth.NTLMEngineImpl: byte[] SIGNATURE>;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addBytes(byte[])>(v);
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addULong(int)>(v);
return;
}
protected void addByte(byte)
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v;
byte v;
int v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: byte;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
v[v] = v;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
v = v + 1;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = v;
return;
}
protected void addBytes(byte[])
{
byte[] v, v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte v;
int v, v, v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: byte[];
if v != null goto label;
return;
label:
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
v[v] = v;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
v = v + 1;
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition> = v;
v = v + 1;
goto label;
label:
return;
}
protected void addUShort(int)
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
int v, v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
v = v >> 8;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
return;
}
protected void addULong(int)
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
int v, v, v, v, v, v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v := @parameter: int;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
v = v >> 8;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
v = v >> 16;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
v = v >> 24;
v = v & 255;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void addByte(byte)>(v);
return;
}
public java.lang.String getResponse()
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
byte[] v, v;
java.nio.charset.Charset v;
java.lang.String v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v = new java.lang.String;
v = virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] getBytes()>();
v = staticinvoke <org.apache.commons.codec.binary.Base64: byte[] encodeBase64(byte[])>(v);
v = <org.apache.http.Consts: java.nio.charset.Charset ASCII>;
specialinvoke v.<java.lang.String: void <init>(byte[],java.nio.charset.Charset)>(v, v);
return v;
}
public byte[] getBytes()
{
byte[] v, v, v, v, v;
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
int v, v, v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
if v != null goto label;
virtualinvoke v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: void buildMessage()>();
label:
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = lengthof v;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
if v <= v goto label;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
v = newarray (byte)[v];
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: int currentOutputPosition>;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, 0, v);
v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents> = v;
label:
v = v.<org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: byte[] messageContents>;
return v;
}
protected void buildMessage()
{
org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage v;
java.lang.Class v;
java.lang.RuntimeException v;
java.lang.String v, v;
v := @this: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage;
v = new java.lang.RuntimeException;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Message builder not implemented for \u0001");
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>(v);
throw v;
}
}