use of nl.nn.adapterframework.extensions.cmis.server.CmisSecurityHandler in project iaf by ibissource.
the class CmisUtils method populateCmisAttributes.
public static void populateCmisAttributes(PipeLineSession session) {
CallContext callContext = (CallContext) session.get(CMIS_CALLCONTEXT_KEY);
if (callContext != null) {
session.put(CMIS_VERSION_KEY, callContext.getCmisVersion());
session.put(CMIS_BINDING_KEY, callContext.getBinding());
if ("basic".equalsIgnoreCase(CMIS_SECURITYHANDLER)) {
HttpServletRequest request = (HttpServletRequest) callContext.get(CallContext.HTTP_SERVLET_REQUEST);
session.setSecurityHandler(new HttpSecurityHandler(request));
} else if ("wsse".equalsIgnoreCase(CMIS_SECURITYHANDLER)) {
session.setSecurityHandler(new CmisSecurityHandler(callContext));
}
}
}
Aggregations