@Controller @RequestMapping(value="/pa/vault") public class SecureVaultController extends Object
| Constructor and Description |
|---|
SecureVaultController() |
| Modifier and Type | Method and Description |
|---|---|
PowerAuthAPIResponse<VaultUnlockResponse> |
unlockVault(PowerAuthAPIRequest<VaultUnlockRequest> request,
String signatureHeader)
Request the vault unlock key.
|
@RequestMapping(value="unlock",
method=POST)
@ResponseBody
public PowerAuthAPIResponse<VaultUnlockResponse> unlockVault(@RequestBody
PowerAuthAPIRequest<VaultUnlockRequest> request,
@RequestHeader(value="X-PowerAuth-Authorization",required=true,defaultValue="unknown")
String signatureHeader)
throws PowerAuthAuthenticationException,
UnsupportedEncodingException
request - PowerAuth RESTful request with VaultUnlockRequest payload.signatureHeader - PowerAuth signature HTTP header.VaultUnlockResponse payload.PowerAuthAuthenticationException - In case authentication fails.UnsupportedEncodingException - In case UTF-8 is not supported.Copyright © 2016 Lime - HighTech Solutions Inc.. All rights reserved.