Class ClientEncryptorSecrets
java.lang.Object
io.getlime.security.powerauth.crypto.lib.encryptor.model.v3.ClientEncryptorSecrets
- All Implemented Interfaces:
EncryptorSecrets
The
ClientEncryptorSecrets class provides secret values for client side encryptor using ECIES scheme.
PowerAuth protocol versions:
- 3.0
- 3.1
- 3.2
-
Constructor Summary
ConstructorsConstructorDescriptionClientEncryptorSecrets(PublicKey serverPublicKey, byte[] sharedInfo2Base) Construct encryptor secrets with precalculated SharedInfo2 base.ClientEncryptorSecrets(PublicKey serverPublicKey, String applicationSecret) Construct encryptor secrets for an application scoped encryptor.ClientEncryptorSecrets(PublicKey serverPublicKey, String applicationSecret, byte[] transportKey) Construct encryptor secrets for an activation scoped encryptor. -
Method Summary
-
Constructor Details
-
ClientEncryptorSecrets
Construct encryptor secrets for an application scoped encryptor. In this variant, the SharedInfo2 base is not known in advance and will be calculated in the encryptor.- Parameters:
serverPublicKey- Server's public key.applicationSecret- Application's secret string.
-
ClientEncryptorSecrets
public ClientEncryptorSecrets(PublicKey serverPublicKey, String applicationSecret, byte[] transportKey) Construct encryptor secrets for an activation scoped encryptor. In this variant, the SharedInfo2 base is not known in advance and will be calculated in the encryptor.- Parameters:
serverPublicKey- Server's public key.applicationSecret- Application's secret string.transportKey- Transport key. The value is required for activation scoped encryptor. If null is provided, then such secrets can be used for application scoped encryptor only.
-
ClientEncryptorSecrets
Construct encryptor secrets with precalculated SharedInfo2 base. This type of configuration is useful in case that SharedInfo2 base is known in advance.- Parameters:
serverPublicKey- Server's public key.sharedInfo2Base- Precalculated SharedInfo2 base.
-