public PrivateKey build()

in src/main/java/org/apache/fineract/cn/lang/security/RsaPrivateKeyBuilder.java [47:55]


  public PrivateKey build() {
    try {
      final KeyFactory keyFactory = KeyFactory.getInstance("RSA");
      final RSAPrivateKeySpec rsaPrivateKeySpec = new RSAPrivateKeySpec(privateKeyMod, privateKeyExp);
      return keyFactory.generatePrivate(rsaPrivateKeySpec);
    } catch (final NoSuchAlgorithmException | InvalidKeySpecException e) {
      throw new IllegalStateException("Could not read private RSA key pair!", e);
    }
  }