Class KeyStoreController
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.controller.KeyStoreController
@RestController("keyStoreControllerV3")
@RequestMapping("/pa/v3/keystore")
public class KeyStoreController
extends Object
Controller for obtaining temporary encryption keys.
PowerAuth protocol versions:
- 3.3
- Author:
- Petr Dvorak, petr@wultra.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.TemporaryKeyResponse> fetchTemporaryKey(io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.TemporaryKeyRequest> request) Create a new temporary key.
-
Constructor Details
-
KeyStoreController
Default autowiring constructor.- Parameters:
service- Keystore service.
-
-
Method Details
-
fetchTemporaryKey
@PostMapping("create") public io.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.TemporaryKeyResponse> fetchTemporaryKey(@RequestBody io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.TemporaryKeyRequest> request) throws PowerAuthTemporaryKeyException Create a new temporary key.- Parameters:
request- Request for temporary key.- Returns:
- Response with temporary key.
- Throws:
PowerAuthTemporaryKeyException- In case temporary key cannot be returned.
-