@@ -0,0 +1,1347 @@
+import java.security.InvalidKeyException;%0Aimport java.security.NoSuchAlgorithmException;%0Aimport java.security.Key;%0Aimport java.security.MessageDigest;%0Aimport javax.crypto.Cipher;%0Aimport javax.crypto.NoSuchPaddingException;%0Aimport javax.crypto.spec.SecretKeySpec;%0A%0Aclass Test %7B%0A%0A    private static void testSHA256() %7B%0A%09MessageDigest md;%0A%09try %7B%0A%09    md = MessageDigest.getInstance(%22SHA-256%22);%0A%09    System.out.println(%22SHA-256 algorithm is present.%22);%0A%09%7D catch (NoSuchAlgorithmException e) %7B%0A%09    System.out.println(%22SHA-256 algorithm not present.%22);%0A%09%7D%0A    %7D%0A%0A    private static void testAES(final int keySize)%0A%09throws NoSuchAlgorithmException, NoSuchPaddingException %7B%0A%09final String prefix = %22AES with %22 + keySize + %22-bit key%22;%0A%09// key, contents are irrelevant%0A%09final byte%5B%5D keyValue = new byte%5BkeySize/8%5D;%0A%09final Key key =  new SecretKeySpec(keyValue, %22AES%22);%0A%09final Cipher c1 = Cipher.getInstance(%22AES%22);%0A%09try %7B%0A%09    c1.init(Cipher.ENCRYPT_MODE, key);%0A%09    System.out.println(prefix + %22 OK.%22);%0A%09%7D catch (final InvalidKeyException e) %7B%0A%09    System.out.println(prefix + %22 not permitted.%22);%0A%09%7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A       System.out.println(%22Testing for cryptographic policies.%5Cn%22);%0A       testAES(128);%0A       testAES(256);%0A       testSHA256();%0A       System.out.println(%22%5CnTests complete.%22);%0A   %7D%0A%0A%7D

Include IAY's test script to check for full crypto in Java