Package com.academy.stratum.controller
Class WalletAuthenticationController
- java.lang.Object
-
- com.academy.stratum.controller.WalletAuthenticationController
-
@Controller public class WalletAuthenticationController extends java.lang.Object
Processing remote wallet authentication requests from compatible apps (like UE4)- Author:
- Ruslan Nazirov
-
-
Constructor Summary
Constructors Constructor Description WalletAuthenticationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
createUserAccount(java.lang.String data, javax.servlet.http.HttpServletRequest request)
Create new user account and wallet for it and store everything in databasejava.util.Map<java.lang.String,java.lang.Object>
getWalletData(java.lang.String data, javax.servlet.http.HttpServletRequest request)
Get wallet data by login/password to use it further in compatible app(like UE4)
-
-
-
Method Detail
-
getWalletData
@RequestMapping(value="/getWalletData", method=POST) @ResponseBody public java.util.Map<java.lang.String,java.lang.Object> getWalletData(@RequestBody java.lang.String data, javax.servlet.http.HttpServletRequest request) throws RestException
Get wallet data by login/password to use it further in compatible app(like UE4)- Parameters:
data
- JSON request (@seeWalletAuthenticationRequest
)request
- HTTP Request- Returns:
- Ajax response with wallet data
- Throws:
RestException
- error, which happens during request processing
-
createUserAccount
@RequestMapping(value="/createUserAccount", method=POST) @ResponseBody public java.util.Map<java.lang.String,java.lang.Object> createUserAccount(@RequestBody java.lang.String data, javax.servlet.http.HttpServletRequest request) throws RestException
Create new user account and wallet for it and store everything in database- Parameters:
data
- JSON request (@seeWalletAuthenticationRequest
)request
- HTTP Request- Returns:
- Ajax response
- Throws:
RestException
- error, which happens during request processing
-
-