This is example code using the Lasso library in Java to protect a java-based service with authentication via Feide using SAML 2.0.
Download example code from Google Code