@Override public void setSession(BindingSession session) { super.setSession(session); LOG.warn("Use NTLM only for testing! Choose a different authentication method in production."); }
/** * Gets the proxy password from the session. * * @return the proxy password or {@code null} if the password is not set */ protected String getProxyPassword() { Object passwordObject = getSession().get(SessionParameter.PROXY_PASSWORD); if (passwordObject instanceof String) { return (String) passwordObject; } return null; }
tm = ((AbstractAuthenticationProvider) authProvider).getTrustManager();
tm = ((AbstractAuthenticationProvider) authProvider).getTrustManager();
/** * Gets the user name from the session. * * @return the user name or {@code null} if the user name is not set */ protected String getUser() { Object userObject = getSession().get(SessionParameter.USER); if (userObject instanceof String) { return (String) userObject; } return null; }
@Override public void setSession(BindingSession session) { super.setSession(session); LOG.warn("Use NTLM only for testing! Choose a different authentication method in production."); }
/** * Gets the proxy user name from the session. * * @return the proxy user name or {@code null} if the user name is not set */ protected String getProxyUser() { Object userObject = getSession().get(SessionParameter.PROXY_USER); if (userObject instanceof String) { return (String) userObject; } return null; }
@Override public void setSession(BindingSession session) { super.setSession(session); if (isTrue(SessionParameter.COOKIES)) { cookieManager = new CmisCookieManager(); } }
/** * Gets the user name from the session. * * @return the user name or {@code null} if the user name is not set */ protected String getUser() { Object userObject = getSession().get(SessionParameter.USER); if (userObject instanceof String) { return (String) userObject; } return null; }
@Override public void setSession(BindingSession session) { super.setSession(session);
/** * Gets the password from the session. * * @return the password or {@code null} if the password is not set */ protected String getPassword() { Object passwordObject = getSession().get(SessionParameter.PASSWORD); if (passwordObject instanceof String) { return (String) passwordObject; } return null; }
@Override public void setSession(BindingSession session) { super.setSession(session);
/** * Gets the bearer token from the session. * * @return the bearer token or {@code null} if the token is not set */ protected String getBearerToken() { Object tokenObject = getSession().get(SessionParameter.OAUTH_ACCESS_TOKEN); if (tokenObject instanceof String) { return (String) tokenObject; } return null; }
/** * Gets the bearer token from the session. * * @return the bearer token or {@code null} if the token is not set */ protected String getBearerToken() { Object tokenObject = getSession().get(SessionParameter.OAUTH_ACCESS_TOKEN); if (tokenObject instanceof String) { return (String) tokenObject; } return null; }
/** * Gets the proxy user name from the session. * * @return the proxy user name or {@code null} if the user name is not set */ protected String getProxyUser() { Object userObject = getSession().get(SessionParameter.PROXY_USER); if (userObject instanceof String) { return (String) userObject; } return null; }
/** * Gets the password from the session. * * @return the password or {@code null} if the password is not set */ protected String getPassword() { Object passwordObject = getSession().get(SessionParameter.PASSWORD); if (passwordObject instanceof String) { return (String) passwordObject; } return null; }
/** * Gets the proxy password from the session. * * @return the proxy password or {@code null} if the password is not set */ protected String getProxyPassword() { Object passwordObject = getSession().get(SessionParameter.PROXY_PASSWORD); if (passwordObject instanceof String) { return (String) passwordObject; } return null; }
/** * Gets the CSRF header name. * * @return the CSRF header name or {@code null} if the CSRF header name is * not set */ protected String getCsrfHeader() { Object csrfHeaderObject = getSession().get(SessionParameter.CSRF_HEADER); if (csrfHeaderObject instanceof String) { return (String) csrfHeaderObject; } return null; } }
/** * Gets the CSRF header name. * * @return the CSRF header name or {@code null} if the CSRF header name is * not set */ protected String getCsrfHeader() { Object csrfHeaderObject = getSession().get(SessionParameter.CSRF_HEADER); if (csrfHeaderObject instanceof String) { return (String) csrfHeaderObject; } return null; } }