code: public static KeyStoreConfig fromJavaKeyStore(final InputStream javaKeyStore, final String alias, final String keyStorePassword, final String privatekeyPassword) {
          KeyStore ks = KeyStoreType.JCEKS.loadKeyStore(javaKeyStore, keyStorePassword);
          return new KeyStoreConfig(ks, alias, keyStorePassword, privatekeyPassword);
  
      }
docs: Create a {@link KeyStoreConfig} from a Java Key Store containing an Organization Certificate (Virksomhetssertifikat).
  
  @param javaKeyStore       A stream of the certificate in JCEKS format.
  @param alias              The alias of the organization certificate in the key store.
  @param keyStorePassword   The password for the key store itself.
  @param privatekeyPassword The password for the private key of the organization certificate within the key store.
  @return The config, containing the certificate, the private key and the certificate chain.