Class WalletAuthenticationController


  • @Controller
    public class WalletAuthenticationController
    extends java.lang.Object
    Processing remote wallet authentication requests from compatible apps (like UE4)
    Author:
    Ruslan Nazirov
    • 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 database
      java.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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WalletAuthenticationController

        public WalletAuthenticationController()
    • 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 (@see WalletAuthenticationRequest)
        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 (@see WalletAuthenticationRequest)
        request - HTTP Request
        Returns:
        Ajax response
        Throws:
        RestException - error, which happens during request processing