SECURITY
Warning
The SECURITY Foundation Library (ej.api:security) is deprecated and replaced by the
CRYPTO Foundation Library (ej.api:crypto 2.0.1).
The CRYPTO Foundation Library is a standalone library (no longer part of the Net Pack).
New VEE Ports and Applications should use CRYPTO instead.
Principle
The SECURITY Foundation Library provides standard Java API (part of the Java Cryptography Architecture) for cryptographic operations: cipher, digest, MAC, signature, secure random & key/certificate management. It relies on a native crypto engine (such as Mbed TLS, OpenSSL or wolfSSL).
Dependencies
The
LLSEC_*.himplementations (see LLSEC: SECURITY (deprecated)).
Installation
SECURITY is an additional module. To enable it, the Net Pack (which bundles several libraries: Net, SSL & SECURITY) must be installed in your VEE Port:
microejPack("com.microej.pack.net:net-pack:11.0.2")
<dependency org="com.microej.pack.net" name="net-pack" rev="11.0.2"/>
Then, using the VEE Port Editor (see Platform Module Configuration), enable the SECURITY library (API, Impl & Mock):
Net Pack Modules
Use
The SECURITY API module must be added to the Application project build file to use the SECURITY library:
implementation("ej.api:security:1.6.0")
<dependency org="ej.api" name="security" rev="1.6.0"/>
