docs: public static KeyPair newKeyPair() {
  
          // Construct a key generator
          KeyPairGenerator keyPairGenerator;
          try {
              keyPairGenerator = KeyPairGenerator.getInstance(ASYMMETRIC_ALGORITHM);
              keyPairGenerator.initialize(ASYMMETRIC_KEY_SIZE);
          } catch (NoSuchAlgorithmException e) {
              if (SecurityProvider.addProvider()) {
                  return newKeyPair();
              } else {
                  throw new IllegalStateException("Algorithm unavailable: " + ASYMMETRIC_ALGORITHM, e);
              }
          }
  
          // Generate a key:
          KeyPair result = keyPairGenerator.generateKeyPair();
  
          return result;
      }