use of ddf.security.liberty.paos.impl.RequestUnmarshaller in project ddf by codice.
the class IdpEndpoint method init.
public void init() {
try (InputStream indexStream = IdpEndpoint.class.getResourceAsStream("/html/index.html");
InputStream submitFormStream = IdpEndpoint.class.getResourceAsStream("/templates/submitForm.handlebars");
InputStream redirectPageStream = IdpEndpoint.class.getResourceAsStream("/templates/redirect.handlebars");
InputStream soapMessageStream = IdpEndpoint.class.getResourceAsStream("/templates/soap.handlebars")) {
indexHtml = IOUtils.toString(indexStream);
submitForm = IOUtils.toString(submitFormStream);
redirectPage = IOUtils.toString(redirectPageStream);
soapMessage = IOUtils.toString(soapMessageStream);
} catch (Exception e) {
LOGGER.info("Unable to load index page for IDP.", e);
}
OpenSAMLUtil.initSamlEngine();
XMLObjectProviderRegistry xmlObjectProviderRegistry = ConfigurationService.get(XMLObjectProviderRegistry.class);
xmlObjectProviderRegistry.registerObjectProvider(Request.DEFAULT_ELEMENT_NAME, new RequestBuilder(), new RequestMarshaller(), new RequestUnmarshaller());
xmlObjectProviderRegistry.registerObjectProvider(ddf.security.liberty.paos.Response.DEFAULT_ELEMENT_NAME, new ResponseBuilder(), new ResponseMarshaller(), new ResponseUnmarshaller());
}
use of ddf.security.liberty.paos.impl.RequestUnmarshaller in project ddf by codice.
the class PaosInInterceptorTest method setup.
@Before
public void setup() {
OpenSAMLUtil.initSamlEngine();
XMLObjectProviderRegistry xmlObjectProviderRegistry = ConfigurationService.get(XMLObjectProviderRegistry.class);
xmlObjectProviderRegistry.registerObjectProvider(Request.DEFAULT_ELEMENT_NAME, new RequestBuilder(), new RequestMarshaller(), new RequestUnmarshaller());
xmlObjectProviderRegistry.registerObjectProvider(Response.DEFAULT_ELEMENT_NAME, new ResponseBuilder(), new ResponseMarshaller(), new ResponseUnmarshaller());
}
Aggregations