Implementing HTTPS pinning
Anyone who is using Smart-ID API needs to make sure that the connection endpoint is authentic and that the connection is secure. This is required to prevent MITM attacks for the authentication and signature protocols. This requirement is also described in RP API endpoint authentication page.
smart-id-java-client
Using smart-id-java-client one can comply with the requirement without importing anything directly to Java. But it requires changes in the code.