public static boolean isUnlimitedStrengthPolicyAvailable(){
  try {
    return Cipher.getMaxAllowedKeyLength("AES") >= 256;
  }
 catch (  final NoSuchAlgorithmException e) {
    e.printStackTrace();
  }
  return false;
}

public static boolean isUnlimitedStrengthPolicyAvailable ( ) { try { return Cipher . getMaxAllowedKeyLength ( "AES" ) >= 256 ; } catch ( final NoSuchAlgorithmException e ) { e . printStackTrace ( ) ; } return false ; }
helper method to check whether the jvm has the unlimited strength policy installed
