• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.net.test;
6 
7 import android.app.Service;
8 import android.content.Intent;
9 import android.os.IBinder;
10 
11 /** Authenticator service for testing SPNEGO (Kerberos) support. */
12 public class DummySpnegoAuthenticatorService extends Service {
13     private static DummySpnegoAuthenticator sAuthenticator;
14 
15     @Override
onBind(Intent arg0)16     public IBinder onBind(Intent arg0) {
17         if (sAuthenticator == null) sAuthenticator = new DummySpnegoAuthenticator(this);
18         return sAuthenticator.getIBinder();
19     }
20 }
21