AllTrustManager trusts all certificates by default. SSL is basically useless without the concept of trust.
This is an example of bad SSL implementation and can lead to a man-in-the-middle attack. See http://crypto.stanford.edu/~dabo/pubs/abstracts/ssl-client-bugs.html for more