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 WalletAuthenticationResponsecreateUserAccount(WalletAuthenticationRequest walletAuthenticationRequest)Create new user account and wallet for it and store everything in databaseWalletAuthenticationResponseenhanceResponseData(WalletAuthenticationResponse walletAuthenticationResponse, WalletAuthenticationRequest walletAuthenticationRequest, java.lang.String operationType)Enhance response data with parameters, which are common for any type of responseWalletAuthenticationResponsegetWalletData(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:WalletAuthenticationServiceGet wallet data by login/password to use it further in compatible app(like UE4)- Specified by:
getWalletDatain 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:WalletAuthenticationServiceCreate new user account and wallet for it and store everything in database- Specified by:
createUserAccountin 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:WalletAuthenticationServiceEnhance response data with parameters, which are common for any type of response- Specified by:
enhanceResponseDatain interfaceWalletAuthenticationService- Parameters:
walletAuthenticationResponse- half-populated response data to enhancewalletAuthenticationRequest- request data from compatible application (like UE4)operationType- operation type- Returns:
- WalletAuthenticationResponse enhanced response data
-
-