public final static int extractFlagsFromType2Message(byte[] msg){
  byte[] flagsBytes=new byte[4];
  System.arraycopy(msg,20,flagsBytes,0,4);
  ByteUtilities.changeWordEndianess(flagsBytes,0,4);
  return ByteUtilities.makeIntFromByte4(flagsBytes);
}

public final static int extractFlagsFromType2Message ( byte [ ] msg ) { byte [ ] flagsBytes = new byte [ 4 ] ; System . arraycopy ( msg , 20 , flagsBytes , 0 , 4 ) ; ByteUtilities . changeWordEndianess ( flagsBytes , 0 , 4 ) ; return ByteUtilities . makeIntFromByte4 ( flagsBytes ) ; }
extracts the ntlm flags from the type 2 message .
