public void buildSingleSignOnService(IDPSSODescriptor idpSsoDesc,
FederatedAuthenticatorConfig samlFederatedAuthenticatorConfig) throws MetadataException {
SingleSignOnService ssoHTTPPost = BuilderUtil
.createSAMLObject(ConfigElements.FED_METADATA_NS, ConfigElements.SSOSERVICE_DESCRIPTOR, "");
ssoHTTPPost.setBinding(IDPMetadataConstant.HTTP_BINDING_POST_SAML2);
ssoHTTPPost.setLocation(
getFederatedAuthenticatorConfigProperty(samlFederatedAuthenticatorConfig, IdentityApplicationConstants.Authenticator.SAML2SSO.SSO_URL)
.getValue());
idpSsoDesc.getSingleSignOnServices().add(ssoHTTPPost);
SingleSignOnService ssoHTTPRedirect = BuilderUtil
.createSAMLObject(ConfigElements.FED_METADATA_NS, ConfigElements.SSOSERVICE_DESCRIPTOR, "");
ssoHTTPRedirect.setBinding(IDPMetadataConstant.HTTP_BINDING_REDIRECT_SAML2);
ssoHTTPRedirect.setLocation(
getFederatedAuthenticatorConfigProperty(samlFederatedAuthenticatorConfig, IdentityApplicationConstants.Authenticator.SAML2SSO.SSO_URL)
.getValue());
idpSsoDesc.getSingleSignOnServices().add(ssoHTTPRedirect);
}