public SamlService(SamlProfile profile, List<? extends EndpointType> endpoints) {
this.profile = profile;
for (EndpointType endpoint : endpoints) {
SamlBinding samlBinding = null;
if (endpoint.getBinding().endsWith("HTTP-Redirect")) {
samlBinding = SamlBinding.HTTP_Redirect;
} else if (endpoint.getBinding().endsWith("HTTP-POST")) {
samlBinding = SamlBinding.HTTP_Post;
} else {