Home | History | Annotate | Download | only in pushapiauthenticator
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.example.android.pushapiauthenticator;
     18 
     19 import android.accounts.AbstractAccountAuthenticator;
     20 import android.accounts.Account;
     21 import android.accounts.AccountAuthenticatorResponse;
     22 import android.accounts.AccountManager;
     23 import android.content.Context;
     24 import android.content.Intent;
     25 import android.os.Bundle;
     26 import android.text.TextUtils;
     27 
     28 public class MyAccountAuthenticator extends AbstractAccountAuthenticator {
     29 
     30     private final Context mContext;
     31 
     32     public MyAccountAuthenticator(Context context) {
     33         super(context);
     34         mContext = context;
     35     }
     36 
     37     public Bundle addAccount(AccountAuthenticatorResponse response, String accountType,
     38             String authTokenType, String[] requiredFeatures, Bundle options) {
     39         return null;
     40     }
     41 
     42     public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
     43             String authTokenType, Bundle options) {
     44         return null;
     45     }
     46 
     47     public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
     48             Bundle options) {
     49         return null;
     50     }
     51 
     52     public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) {
     53         return null;
     54     }
     55 
     56     public String getAuthTokenLabel(String authTokenType) {
     57         return null;
     58     }
     59 
     60     public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account,
     61             String[] features) {
     62         return null;
     63     }
     64 
     65     public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
     66             String authTokenType, Bundle options) {
     67         return null;
     68     }
     69 }