Search in sources :

Example 1 with SingleSignOutNotificationEndpointElement

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);
}
Also used : AttributedURIType(com.sun.identity.wsfederation.jaxb.wsaddr.AttributedURIType) TokenIssuerEndpointElement(com.sun.identity.wsfederation.jaxb.wsfederation.TokenIssuerEndpointElement) SingleSignOutNotificationEndpointElement(com.sun.identity.wsfederation.jaxb.wsfederation.SingleSignOutNotificationEndpointElement) TokenIssuerNameElement(com.sun.identity.wsfederation.jaxb.wsfederation.TokenIssuerNameElement)

Aggregations

AttributedURIType (com.sun.identity.wsfederation.jaxb.wsaddr.AttributedURIType)1 SingleSignOutNotificationEndpointElement (com.sun.identity.wsfederation.jaxb.wsfederation.SingleSignOutNotificationEndpointElement)1 TokenIssuerEndpointElement (com.sun.identity.wsfederation.jaxb.wsfederation.TokenIssuerEndpointElement)1 TokenIssuerNameElement (com.sun.identity.wsfederation.jaxb.wsfederation.TokenIssuerNameElement)1