public abstract class PowerAuthEncryptionProviderBase extends Object
| Constructor and Description |
|---|
PowerAuthEncryptionProviderBase() |
| Modifier and Type | Method and Description |
|---|---|
<T> PowerAuthEciesEncryption<T> |
decryptRequest(javax.servlet.http.HttpServletRequest request,
Class<T> requestType,
io.getlime.security.powerauth.crypto.lib.encryptor.ecies.model.EciesScope eciesScope)
Decrypt HTTP request body and construct object with ECIES data.
|
EciesEncryptedResponse |
encryptResponse(Object responseObject,
PowerAuthEciesEncryption eciesEncryption)
Encrypt response using ECIES.
|
abstract PowerAuthEciesDecryptorParameters |
getEciesDecryptorParameters(String activationId,
String applicationKey,
String ephemeralPublicKey)
Get ECIES decryptor parameters from PowerAuth server.
|
public abstract PowerAuthEciesDecryptorParameters getEciesDecryptorParameters(String activationId, String applicationKey, String ephemeralPublicKey) throws PowerAuthEncryptionException
activationId - Activation ID (only used in activation scope, in application scope use null).applicationKey - Application key.ephemeralPublicKey - Ephemeral public key for ECIES.PowerAuthEncryptionException - In case PowerAuth server call fails.public <T> PowerAuthEciesEncryption<T> decryptRequest(javax.servlet.http.HttpServletRequest request, Class<T> requestType, io.getlime.security.powerauth.crypto.lib.encryptor.ecies.model.EciesScope eciesScope) throws PowerAuthEncryptionException
T - Generic request object type.request - HTTP request.requestType - Class of request object.eciesScope - ECIES scope.PowerAuthEncryptionException - In case request decryption fails.public EciesEncryptedResponse encryptResponse(Object responseObject, PowerAuthEciesEncryption eciesEncryption)
responseObject - Response object which should be encrypted.eciesEncryption - PowerAuth encryption object.Copyright © 2017–2020 Wultra s.r.o.. All rights reserved.