Class PowerAuthEncryptionProvider
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.provider.PowerAuthEncryptionProviderBase
io.getlime.security.powerauth.rest.api.spring.provider.PowerAuthEncryptionProvider
@Component public class PowerAuthEncryptionProvider extends PowerAuthEncryptionProviderBase
Implementation of PowerAuth encryption provider.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors Constructor Description PowerAuthEncryptionProvider(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, HttpCustomizationService httpCustomizationService)Provide constructor. -
Method Summary
Modifier and Type Method Description PowerAuthEciesDecryptorParametersgetEciesDecryptorParameters(String activationId, String applicationKey, String ephemeralPublicKey)Get ECIES decryptor parameters from PowerAuth server.Methods inherited from class io.getlime.security.powerauth.rest.api.spring.provider.PowerAuthEncryptionProviderBase
decryptRequest, encryptResponse
-
Constructor Details
-
PowerAuthEncryptionProvider
@Autowired public PowerAuthEncryptionProvider(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, HttpCustomizationService httpCustomizationService)Provide constructor.- Parameters:
powerAuthClient- PowerAuth client.httpCustomizationService- HTTP customization service.
-
-
Method Details
-
getEciesDecryptorParameters
@Nonnull public PowerAuthEciesDecryptorParameters getEciesDecryptorParameters(@Nullable String activationId, @Nonnull String applicationKey, @Nonnull String ephemeralPublicKey) throws PowerAuthEncryptionExceptionDescription copied from class:PowerAuthEncryptionProviderBaseGet ECIES decryptor parameters from PowerAuth server.- Specified by:
getEciesDecryptorParametersin classPowerAuthEncryptionProviderBase- Parameters:
activationId- Activation ID (only used in activation scope, in application scope use null).applicationKey- Application key.ephemeralPublicKey- Ephemeral public key for ECIES.- Returns:
- ECIES decryptor parameters.
- Throws:
PowerAuthEncryptionException- In case PowerAuth server call fails.
-