I'd like to write a web application which does the authentication using SAML 2.0 tokens, issued by an identity provider. I understand, according to this question, that there is a viable solution in the PHP world using simpleSAMLphp.
Is there an equivalent method in the Java world? Are there out of the box solutions and/or tutorials for common servlet
containers or application servers?
You can try the OpenSAML project; it provides a Java library for creating and validating SAML tokens.