mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Replace method infering basic authorization for other returning the 'authenticate' header value; let's analyze the header in other class
This commit is contained in:
parent
ec2fcc0716
commit
4572ca29e8
@ -108,7 +108,7 @@ public class RemoteOperationResult implements Serializable {
|
||||
private String mAuthenticate;
|
||||
|
||||
private ArrayList<Object> mData;
|
||||
|
||||
|
||||
public RemoteOperationResult(ResultCode code) {
|
||||
mCode = code;
|
||||
mSuccess = (code == ResultCode.OK || code == ResultCode.OK_SSL || code == ResultCode.OK_NO_SSL);
|
||||
@ -365,9 +365,8 @@ public class RemoteOperationResult implements Serializable {
|
||||
mRedirectedLocation.toLowerCase().contains("wayf")));
|
||||
}
|
||||
|
||||
public boolean isBasicAuthentication() {
|
||||
return (mAuthenticate != null &&
|
||||
(mAuthenticate.toUpperCase().startsWith("BASIC")));
|
||||
public String getAuthenticateHeader() {
|
||||
return mAuthenticate;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user