Hi Sam,
Please go through the below links (one is PDF link & second is of Oracle). These will help to get pretty good idea.
http://www.cs.ucsb.edu/~bultan/courses/595-W06/SAML.pdf
Please let me know if you need further information on this.
Thanks,
Hamendra