public static boolean ciphersSupported (PublicKey key)
    {
        return getRSACipher(key) != null && getAESCipher(Cipher.ENCRYPT_MODE, new byte[16]) != null;
    }
public static boolean ciphersSupported ( PublicKey key ) { return getRSACipher ( key ) != null && getAESCipher ( Cipher . ENCRYPT_MODE , new byte [ 16 ] ) != null ; }
Returns true if we can generate our ciphers.