SVNAuthentication previousAuth = null; if (auths.length > 0) { previousAuth = auths[auths.length - 1]; } SVNAuthentication auth = getAuthenticationProvider().requestClientAuthentication(kind, realm, previousAuth, this);
SVNAuthentication auth = getAuthenticationProvider().requestClientAuthentication(kind, realm, myLastProvidedAuthentication, this);
    public SVNAuthentication getNextAuthentication(String kind, String realm) {        Integer index = (Integer) myProvidedAuthentications.get(kind);        if (index == null) {            return null;        }        int i = index.intValue();        SVNAuthentication[] auths = getAvailableAuthentications(kind, realm);        if (i < auths.length) {            myProvidedAuthentications.put(kind, new Integer(i + 1));            return auths[i];        }        if (getAuthenticationProvider() != null) {            SVNAuthentication previousAuth = null;            if (auths.length > 0) {                previousAuth = auths[auths.length - 1];            }            SVNAuthentication auth = getAuthenticationProvider().requestClientAuthentication(kind, realm, previousAuth, this);            if (auth != null) {                myProvidedAuthentications.put(kind, new Integer(i + 1));                return auth;            }        }        myProvidedAuthentications.put(kind, null);        return null;    }