public class MockAuthWebService extends java.lang.Object implements AuthWebService
Constructor and Description |
---|
MockAuthWebService(DAO<TransientObject,TransientObject> dao,
KeyManager keyManager) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getPublicKey() |
rx.Observable<byte[]> |
getPublicKeyA() |
rx.Observable<java.util.Map<java.lang.String,java.lang.Object>> |
getUserData(java.lang.String authToken,
java.lang.String userId) |
rx.Observable<ValidCredentials> |
getUserFromAuthToken(java.lang.String authToken) |
rx.Observable<ValidCredentials> |
getUserFromRecoveryToken(java.lang.String authToken) |
retrofit.client.Response |
login(LoginCredentials credentials) |
rx.Observable<ValidCredentials> |
loginA(LoginCredentials credentials) |
rx.Observable<java.lang.Void> |
sendUserData(java.lang.String authToken,
java.lang.String userId,
java.util.Map<java.lang.String,?> data) |
void |
setAuthManger(AuthManager authManager) |
retrofit.client.Response |
userSignUp(SignUpCredentials credentials) |
rx.Observable<ValidCredentials> |
userSignUpA(SignUpCredentials credentials) |
void |
verifyAuthToken(java.lang.String token) |
@Inject public MockAuthWebService(DAO<TransientObject,TransientObject> dao, KeyManager keyManager)
public void setAuthManger(AuthManager authManager)
public retrofit.client.Response userSignUp(@Body SignUpCredentials credentials)
userSignUp
in interface AuthWebService
public rx.Observable<ValidCredentials> userSignUpA(@Body SignUpCredentials credentials)
userSignUpA
in interface AuthWebService
public retrofit.client.Response login(@Body LoginCredentials credentials)
login
in interface AuthWebService
public rx.Observable<ValidCredentials> loginA(@Body LoginCredentials credentials)
loginA
in interface AuthWebService
public rx.Observable<byte[]> getPublicKeyA()
getPublicKeyA
in interface AuthWebService
public byte[] getPublicKey()
getPublicKey
in interface AuthWebService
public rx.Observable<ValidCredentials> getUserFromAuthToken(@Path(value="token") java.lang.String authToken)
getUserFromAuthToken
in interface AuthWebService
public rx.Observable<ValidCredentials> getUserFromRecoveryToken(@Path(value="token") java.lang.String authToken)
getUserFromRecoveryToken
in interface AuthWebService
public rx.Observable<java.lang.Void> sendUserData(@Header(value="Authorization") java.lang.String authToken, @Path(value="userId") java.lang.String userId, @Body java.util.Map<java.lang.String,?> data)
sendUserData
in interface AuthWebService
public rx.Observable<java.util.Map<java.lang.String,java.lang.Object>> getUserData(@Header(value="Authorization") java.lang.String authToken, java.lang.String userId)
getUserData
in interface AuthWebService
public void verifyAuthToken(java.lang.String token)