public interface AuthWebService
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,?> map) |
retrofit.client.Response |
userSignUp(SignUpCredentials credentials) |
rx.Observable<ValidCredentials> |
userSignUpA(SignUpCredentials credentials) |
@POST(value="/auth") retrofit.client.Response userSignUp(@Body SignUpCredentials credentials)
@POST(value="/auth") rx.Observable<ValidCredentials> userSignUpA(@Body SignUpCredentials credentials)
@PUT(value="/auth") retrofit.client.Response login(@Body LoginCredentials credentials)
@PUT(value="/auth") rx.Observable<ValidCredentials> loginA(@Body LoginCredentials credentials)
@GET(value="/auth/key") rx.Observable<byte[]> getPublicKeyA()
@GET(value="/auth/key") byte[] getPublicKey()
@GET(value="/auth/from/{token}") rx.Observable<ValidCredentials> getUserFromAuthToken(@Path(value="token") java.lang.String authToken)
@GET(value="/auth/recover/{token}") rx.Observable<ValidCredentials> getUserFromRecoveryToken(@Path(value="token") java.lang.String authToken)
@POST(value="/auth/user/data/{userId}") 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,?> map)
@GET(value="/auth/user/data/{userId}") rx.Observable<java.util.Map<java.lang.String,java.lang.Object>> getUserData(@Header(value="Authorization") java.lang.String authToken, @Path(value="userId") java.lang.String userId)