Class SecureVaultService
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.service.v3.SecureVaultService
@Service("secureVaultServiceV3")
public class SecureVaultService
extends java.lang.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)voidsetPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SecureVaultService
public SecureVaultService()
-
-
Method Details
-
setPowerAuthClient
@Autowired public void setPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient) -
setAuthenticationProvider
@Autowired public void setAuthenticationProvider(PowerAuthAuthenticationProvider authenticationProvider) -
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 io.getlime.security.powerauth.rest.api.base.exception.PowerAuthSecureVaultException, io.getlime.security.powerauth.rest.api.base.exception.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:
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthSecureVaultException- In case vault unlock request fails.io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException- In case authentication fails.
-