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
    Constructor
    Description
    Default autowiring constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyStoreController

      @Autowired public KeyStoreController(KeyStoreService service)
      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.