JanssenProject / jans

An enterprise identity and access management platform-- Janssen is a distribution of standards-based, developer friendly, components that are engineered to work together in any cloud. #OAuth #OpenID #FIDO
https://docs.jans.io
Apache License 2.0
481 stars 75 forks source link

jans-eleven: compile issue for crypto code #1104

Open pujavs opened 2 years ago

pujavs commented 2 years ago

..\jans\jans-eleven\server\src\main\java\io\jans\eleven\service\PKCS11Service.java [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jans-eleven-server: Compilation failure: Compilation failure: [ERROR] ...\jans\jans-eleven\server\src\main\java\io\jans\eleven\service\PKCS11Service.java:[92,49] error: incompatible types: InputStream cannot be converted to Config [ERROR] ..\jans\jans-eleven\server\src\main\java\io\jans\eleven\service\PKCS11Service.java:[237,36] error: no suitable constructor found for RSAPublicKeyImpl(BigInteger,BigInteger)

Getting above error with existing code in main as well as jetty migrated code.

yuriyz commented 2 years ago

@qbert2k would you be so kind to check ? @pujavs please share branch where you are making these changes.

pujavs commented 2 years ago

Jetty upgrade branch is https://github.com/JanssenProject/jans/tree/jans-jetty-upgrade However the same issue also comes with main branch -> https://github.com/JanssenProject/jans/tree/main/jans-eleven Using Java 11