use of com.sun.identity.wsfederation.jaxb.wsfederation.SingleSignOutNotificationEndpointElement in project OpenAM by OpenRock.
the class CreateWSFedMetaDataTemplate method addWSFedServiceProviderTemplate.
private static void addWSFedServiceProviderTemplate(String entityId, com.sun.identity.wsfederation.jaxb.wsfederation.ObjectFactory objFactory, FederationElement fed, Map mapParams, String url) throws JAXBException {
if (url == null) {
url = getHostURL();
}
String spAlias = (String) mapParams.get(MetaTemplateParameters.P_SP);
String maStr = buildMetaAliasInURI(spAlias);
TokenIssuerNameElement tin = objFactory.createTokenIssuerNameElement();
tin.setValue(entityId);
fed.getAny().add(tin);
TokenIssuerEndpointElement tie = objFactory.createTokenIssuerEndpointElement();
com.sun.identity.wsfederation.jaxb.wsaddr.ObjectFactory addrObjFactory = new com.sun.identity.wsfederation.jaxb.wsaddr.ObjectFactory();
AttributedURIType auri = addrObjFactory.createAttributedURIType();
auri.setValue(url + "/WSFederationServlet" + maStr);
tie.setAddress(auri);
fed.getAny().add(tie);
SingleSignOutNotificationEndpointElement ssne = objFactory.createSingleSignOutNotificationEndpointElement();
AttributedURIType ssneUri = addrObjFactory.createAttributedURIType();
ssneUri.setValue(url + "/WSFederationServlet" + maStr);
ssne.setAddress(auri);
fed.getAny().add(ssne);
}
Aggregations