com.duowan.mobile.netroid.toolbox
Interface Authenticator

All Known Implementing Classes:
AndroidAuthenticator

public interface Authenticator

An interface for interacting with auth tokens.


Method Summary
 java.lang.String getAuthToken()
          Synchronously retrieves an auth token.
 void invalidateAuthToken(java.lang.String authToken)
          Invalidates the provided auth token.
 

Method Detail

getAuthToken

java.lang.String getAuthToken()
                              throws AuthFailureError
Synchronously retrieves an auth token.

Throws:
AuthFailureError - If authentication did not succeed

invalidateAuthToken

void invalidateAuthToken(java.lang.String authToken)
Invalidates the provided auth token.