Class SecureVaultService
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.service.v3.SecureVaultService
@Service("secureVaultServiceV3")
public class SecureVaultService
extends Object
Service implementing secure vault functionality.
PowerAuth protocol versions:
- 3.0
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors Constructor Description SecureVaultService() -
Method Summary
Modifier and Type Method Description voidsetAuthenticationProvider(PowerAuthAuthenticationProvider authenticationProvider)Set PowerAuth authentication provider via setter injection.voidsetPowerAuthClient(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient)Set PowerAuth service client via setter injection.io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponsevaultUnlock(io.getlime.security.powerauth.http.PowerAuthSignatureHttpHeader header, io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.servlet.http.HttpServletRequest httpServletRequest)Unlock secure vault.
-
Constructor Details
-
SecureVaultService
public SecureVaultService()
-
-
Method Details
-
setPowerAuthClient
@Autowired public void setPowerAuthClient(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient)Set PowerAuth service client via setter injection.- Parameters:
powerAuthClient- PowerAuth service client.
-
setAuthenticationProvider
@Autowired public void setAuthenticationProvider(PowerAuthAuthenticationProvider authenticationProvider)Set PowerAuth authentication provider via setter injection.- Parameters:
authenticationProvider- PowerAuth authentication provider.
-
vaultUnlock
public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse vaultUnlock(io.getlime.security.powerauth.http.PowerAuthSignatureHttpHeader header, io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.servlet.http.HttpServletRequest httpServletRequest) throws PowerAuthSecureVaultException, PowerAuthAuthenticationExceptionUnlock secure vault.- Parameters:
header- PowerAuth signature HTTP header.request- ECIES encrypted vault unlock request.httpServletRequest- HTTP servlet request.- Returns:
- ECIES encrypted vault unlock response.
- Throws:
PowerAuthSecureVaultException- In case vault unlock request fails.PowerAuthAuthenticationException- In case authentication fails.
-