@Override public Map<String, List<String>> getHTTPHeaders(String url) { // get user and password String user = getUser(); String password = getPassword(); // if no user is set, reset the authenticator if (user == null) { AUTHENTICATOR.reset(); return null; } if (password == null) { password = ""; } // set user and password AUTHENTICATOR.setPasswordAuthentication(user, password); // OpenCMIS is not in charge of the authentication // -> no HTTP header to set return null; }
@Override public Map<String, List<String>> getHTTPHeaders(String url) { // get user and password String user = getUser(); String password = getPassword(); // if no user is set, reset the authenticator if (user == null) { AUTHENTICATOR.reset(); return null; } if (password == null) { password = ""; } // set user and password AUTHENTICATOR.setPasswordAuthentication(user, password); // OpenCMIS is not in charge of the authentication // -> no HTTP header to set return null; }