What is a clocking and doorway page?

I heard somewhere that clocking and doorway pages are blackhat seo technique and i had read more about it but i did get it so please tell me about those.
Cloaking is the technique in which the content presented in search engine spider is different from that of the information presented to the browser.This is one of the blackhat techniques.Doorway pages refers to the technique in which inserting the result of one particular phrase while sending visitor to different page.
Cloaking is a search engine optimization technique in which content presented to the search engine spider is the difference from the presented to the user's browser. This is done by IP address and user request HTTP header of the request page.
Doorways pages are defined as low-quality pages used optimized to rank well for specific keywords that act as a door between users and content. They used to increase little value to visitors and serve the sole purpose of boosting SEO value.
Award-winning Mac antivirus and Internet security software