Package com.academy.stratum.service
Interface WalletAuthenticationService
-
- All Known Implementing Classes:
WalletAuthenticationServiceImpl
public interface WalletAuthenticationService
Processing remote wallet authentication requests from compatible apps (like UE4)- Author:
- Ruslan Nazirov
-
-
Method Summary
All Methods Instance Methods Abstract 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
WalletAuthenticationResponse getWalletData(WalletAuthenticationRequest walletAuthenticationRequest) throws java.lang.Exception
Get wallet data by login/password to use it further in compatible app(like UE4)- Parameters:
walletAuthenticationRequest
- request data from compatible application (like UE4)- Returns:
- WalletAuthenticationResponse
- Throws:
java.lang.Exception
- any exception, which happened during method execution
-
createUserAccount
WalletAuthenticationResponse createUserAccount(WalletAuthenticationRequest walletAuthenticationRequest) throws java.lang.Exception
Create new user account and wallet for it and store everything in database- Parameters:
walletAuthenticationRequest
- request data from compatible application (like UE4)- Returns:
- WalletAuthenticationResponse
- Throws:
java.lang.Exception
- any exception, which happened during method execution
-
enhanceResponseData
WalletAuthenticationResponse enhanceResponseData(WalletAuthenticationResponse walletAuthenticationResponse, WalletAuthenticationRequest walletAuthenticationRequest, java.lang.String operationType)
Enhance response data with parameters, which are common for any type of response- Parameters:
walletAuthenticationResponse
- half-populated response data to enhancewalletAuthenticationRequest
- request data from compatible application (like UE4)operationType
- operation type- Returns:
- WalletAuthenticationResponse enhanced response data
-
-