Package com.academy.stratum.service.impl
Class WalletAuthenticationServiceImpl
- java.lang.Object
-
- com.academy.stratum.service.impl.WalletAuthenticationServiceImpl
-
- All Implemented Interfaces:
WalletAuthenticationService
@Service("walletAuthenticationService") public class WalletAuthenticationServiceImpl extends java.lang.Object implements WalletAuthenticationService
-
-
Constructor Summary
Constructors Constructor Description WalletAuthenticationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WalletAuthenticationResponse
createUserAccount(WalletAuthenticationRequest walletAuthenticationRequest)
Create new user account and wallet for it and store everything in databaseWalletAuthenticationResponse
enhanceResponseData(WalletAuthenticationResponse walletAuthenticationResponse, WalletAuthenticationRequest walletAuthenticationRequest, java.lang.String operationType)
Enhance response data with parameters, which are common for any type of responseWalletAuthenticationResponse
getWalletData(WalletAuthenticationRequest walletAuthenticationRequest)
Get wallet data by login/password to use it further in compatible app(like UE4)
-
-
-
Method Detail
-
getWalletData
public WalletAuthenticationResponse getWalletData(WalletAuthenticationRequest walletAuthenticationRequest) throws java.lang.Exception
Description copied from interface:WalletAuthenticationService
Get wallet data by login/password to use it further in compatible app(like UE4)- Specified by:
getWalletData
in interfaceWalletAuthenticationService
- Parameters:
walletAuthenticationRequest
- request data from compatible application (like UE4)- Returns:
- WalletAuthenticationResponse
- Throws:
java.lang.Exception
- any exception, which happened during method execution
-
createUserAccount
public WalletAuthenticationResponse createUserAccount(WalletAuthenticationRequest walletAuthenticationRequest) throws java.lang.Exception
Description copied from interface:WalletAuthenticationService
Create new user account and wallet for it and store everything in database- Specified by:
createUserAccount
in interfaceWalletAuthenticationService
- Parameters:
walletAuthenticationRequest
- request data from compatible application (like UE4)- Returns:
- WalletAuthenticationResponse
- Throws:
java.lang.Exception
- any exception, which happened during method execution
-
enhanceResponseData
public WalletAuthenticationResponse enhanceResponseData(WalletAuthenticationResponse walletAuthenticationResponse, WalletAuthenticationRequest walletAuthenticationRequest, java.lang.String operationType)
Description copied from interface:WalletAuthenticationService
Enhance response data with parameters, which are common for any type of response- Specified by:
enhanceResponseData
in interfaceWalletAuthenticationService
- Parameters:
walletAuthenticationResponse
- half-populated response data to enhancewalletAuthenticationRequest
- request data from compatible application (like UE4)operationType
- operation type- Returns:
- WalletAuthenticationResponse enhanced response data
-
-