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:
parent
1ef3a0176c
commit
0cf2835268
@ -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
|
* Check if a file exists in the OC server
|
||||||
|
@ -28,7 +28,6 @@ package com.owncloud.android.lib.common.network;
|
|||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
|
||||||
|
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user