protected boolean isStorePlainTextPasswords(String realm, SVNAuthentication auth) throws SVNException { SVNURL url = auth.getURL(); String host = url != null ? url.getHost() : null; Map properties = getHostProperties(host); String storePlainTextPasswords = (String) properties.get("store-plaintext-passwords"); if (storePlainTextPasswords == null) { if (myAuthStoreHandler != null) { return myAuthStoreHandler.canStorePlainTextPasswords(realm, auth); } return false; } return "yes".equalsIgnoreCase(storePlainTextPasswords) || "on".equalsIgnoreCase(storePlainTextPasswords) || "true".equalsIgnoreCase(storePlainTextPasswords); }
protected boolean isStorePlainTextPasswords(String realm, SVNAuthentication auth) throws SVNException { SVNURL url = auth.getURL(); String host = url != null ? url.getHost() : null; Map properties = getHostProperties(host); String storePlainTextPasswords = (String) properties.get("store-plaintext-passwords"); if (storePlainTextPasswords == null) { if (myAuthStoreHandler != null) { return myAuthStoreHandler.canStorePlainTextPasswords(realm, auth); } return false; } return "yes".equalsIgnoreCase(storePlainTextPasswords) || "on".equalsIgnoreCase(storePlainTextPasswords) || "true".equalsIgnoreCase(storePlainTextPasswords); }
public boolean isStorePlainTextPasswords(String realm, SVNAuthentication auth) throws SVNException { if (!super.hasStorePlainTextPasswordsOption()) { ISVNAuthStoreHandler handler = getAuthenticationStorageOptions().getAuthStoreHandler(); if (handler != null) { return handler.canStorePlainTextPasswords(realm, auth); } return false; } return super.isStorePlainTextPasswords(realm, auth); }