| 1 |
efrain |
1 |
package com.cesams.twogetskills.sync;
|
|
|
2 |
|
|
|
3 |
import android.accounts.AbstractAccountAuthenticator;
|
|
|
4 |
import android.accounts.Account;
|
|
|
5 |
import android.accounts.AccountAuthenticatorResponse;
|
|
|
6 |
import android.accounts.NetworkErrorException;
|
|
|
7 |
import android.content.Context;
|
|
|
8 |
import android.os.Bundle;
|
|
|
9 |
|
|
|
10 |
public class Authenticator extends AbstractAccountAuthenticator {
|
|
|
11 |
|
|
|
12 |
public Authenticator(Context context) {
|
|
|
13 |
super(context);
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
@Override
|
|
|
17 |
public Bundle editProperties(
|
|
|
18 |
AccountAuthenticatorResponse r, String s) {
|
|
|
19 |
throw new UnsupportedOperationException();
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
@Override
|
|
|
23 |
public Bundle addAccount(
|
|
|
24 |
AccountAuthenticatorResponse r,
|
|
|
25 |
String s,
|
|
|
26 |
String s2,
|
|
|
27 |
String[] strings,
|
|
|
28 |
Bundle bundle) throws NetworkErrorException {
|
|
|
29 |
return null;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
@Override
|
|
|
33 |
public Bundle confirmCredentials(
|
|
|
34 |
AccountAuthenticatorResponse r,
|
|
|
35 |
Account account,
|
|
|
36 |
Bundle bundle) throws NetworkErrorException {
|
|
|
37 |
return null;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
@Override
|
|
|
41 |
public Bundle getAuthToken(
|
|
|
42 |
AccountAuthenticatorResponse r,
|
|
|
43 |
Account account,
|
|
|
44 |
String s,
|
|
|
45 |
Bundle bundle) throws NetworkErrorException {
|
|
|
46 |
throw new UnsupportedOperationException();
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
@Override
|
|
|
50 |
public String getAuthTokenLabel(String s) {
|
|
|
51 |
throw new UnsupportedOperationException();
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
@Override
|
|
|
55 |
public Bundle updateCredentials(
|
|
|
56 |
AccountAuthenticatorResponse r,
|
|
|
57 |
Account account,
|
|
|
58 |
String s, Bundle bundle) throws NetworkErrorException {
|
|
|
59 |
throw new UnsupportedOperationException();
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
@Override
|
|
|
63 |
public Bundle hasFeatures(
|
|
|
64 |
AccountAuthenticatorResponse r,
|
|
|
65 |
Account account, String[] strings) throws NetworkErrorException {
|
|
|
66 |
throw new UnsupportedOperationException();
|
|
|
67 |
}
|
|
|
68 |
}
|