// JAVADOC COMMENT ELIDED public boolean encrypt(Connection conn, boolean on) throws IOException { BluetoothConnection btconn = BluetoothConnection.getConnection(conn); if (!equals(btconn.getRemoteDevice())) { throw new IllegalArgumentException( "The specified connection " + "is not a connection to this RemoteDevice."); } if (on && !authenticate()) { return false; } return btconn.encrypt(on); }