code: public static boolean canUseStrongKeys() {
          try {
              int maxKeyLen = Cipher.getMaxAllowedKeyLength(Crypto.CIPHER_ALGORITHM);
              return maxKeyLen > 128;
          } catch (NoSuchAlgorithmException e) {
              throw new IllegalStateException("Algorithm unavailable: " + Crypto.CIPHER_ALGORITHM, e);
          }
      }
docs: Tests whether the
  "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" is
  correctly installed.
  
  @return If strong keys can be used, true, otherwise false.