authStr = Base64.byteArrayToBase64(authStr.getBytes());
authStr = SVNBase64.byteArrayToBase64(authStr.getBytes());
    private static String composeAuthResponce(SVNAuthentication credentials, Map credentialsChallenge) throws SVNAuthenticationException {        String method = (String) credentialsChallenge.get("");        StringBuffer result = new StringBuffer();        if ("basic".equalsIgnoreCase(method) && credentials instanceof SVNPasswordAuthentication) {            SVNPasswordAuthentication auth = (SVNPasswordAuthentication) credentials;            String authStr = auth.getUserName() + ":" + auth.getPassword();            authStr = Base64.byteArrayToBase64(authStr.getBytes());            result.append("Basic ");            result.append(authStr);        } else if ("digest".equalsIgnoreCase(method) && credentials instanceof SVNPasswordAuthentication) {            SVNPasswordAuthentication auth = (SVNPasswordAuthentication) credentials;            result.append("Digest ");            HttpDigestAuth digestAuth = new HttpDigestAuth(auth, credentialsChallenge);            String response = digestAuth.authenticate();            result.append(response);        } else {            throw new SVNAuthenticationException("Authentication method '" + method + "' is not supported");        }        return result.toString();    }