1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Add a method clearCredentials() to OwnCloudClient

This commit is contained in:
masensio 2014-06-06 12:37:03 +02:00
parent 1ef3a0176c
commit 0cf2835268
2 changed files with 6 additions and 1 deletions

View File

@ -159,6 +159,12 @@ public class OwnCloudClient extends HttpClient {
}
}
public void clearCredentials() {
mCredentials = new UsernamePasswordCredentials("", "");
getState().clearCredentials();
getState().clearCookies();
mSsoSessionCookie = null;
}
/**
* Check if a file exists in the OC server

View File

@ -28,7 +28,6 @@ package com.owncloud.android.lib.common.network;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import android.net.Uri;